diff --git a/jsconfig.json b/jsconfig.json new file mode 100644 index 0000000..babf8fb --- /dev/null +++ b/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + } +} \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index 8b0f57b..e9d55de 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,7 +1,19 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import {defineConfig} from "vite"; +import react from "@vitejs/plugin-react"; +import path from "path"; -// https://vite.dev/config/ export default defineConfig({ - plugins: [react()], + css: { + preprocessorOptions: { + scss: { + api: 'modern-compiler', + }, + }, + }, + resolve: { + alias: { + "@": path.resolve(__dirname, "src"), + } + }, + plugins: [react()], })