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