north-star / main_old / files / vite.config.js
Branch main_old · default branch · all branches
vite.config.js
| 1 | import { defineConfig } from 'vite'; |
| 2 | import checker from 'vite-plugin-checker'; |
| 3 | |
| 4 | export default defineConfig({ |
| 5 | root: 'src', |
| 6 | base: './', |
| 7 | plugins: [ |
| 8 | checker({ |
| 9 | typescript: true, |
| 10 | }), |
| 11 | ], |
| 12 | build: { |
| 13 | target: 'esnext', |
| 14 | outDir: '../public', |
| 15 | emptyOutDir: true, |
| 16 | rollupOptions: { |
| 17 | output: { |
| 18 | entryFileNames: '[name].js', |
| 19 | chunkFileNames: '[name].js', |
| 20 | assetFileNames: '[name][extname]' |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | }); |