diff --git a/client/jsconfig.json b/client/jsconfig.json new file mode 100644 index 0000000..babf8fb --- /dev/null +++ b/client/jsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*": ["./src/*"] + } + } +} \ No newline at end of file diff --git a/client/vite.config.js b/client/vite.config.js index 6b2481a..d011083 100644 --- a/client/vite.config.js +++ b/client/vite.config.js @@ -1,6 +1,12 @@ import { defineConfig } from 'vite'; +import * as path from 'path'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], + resolve: { + alias: { + '@': path.resolve(__dirname, './src') + } + } }); \ No newline at end of file