diff options
Diffstat (limited to 'vite.config.js')
| -rw-r--r-- | vite.config.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vite.config.js b/vite.config.js index eca6e2f..7c2d7f5 100644 --- a/vite.config.js +++ b/vite.config.js | |||
| @@ -1,6 +1,12 @@ | |||
| 1 | import { defineConfig } from 'vite' | 1 | import { defineConfig } from 'vite' |
| 2 | import react from '@vitejs/plugin-react' | 2 | import react from '@vitejs/plugin-react' |
| 3 | import path from 'path'; | ||
| 3 | 4 | ||
| 4 | export default defineConfig({ | 5 | export default defineConfig({ |
| 5 | plugins: [react()] | 6 | plugins: [react()], |
| 7 | resolve: { | ||
| 8 | alias: { | ||
| 9 | '~': path.resolve(__dirname, './src') | ||
| 10 | } | ||
| 11 | } | ||
| 6 | }) | 12 | }) |
