north-star / files / vite.config.js
vite.config.js
4e701dc7 2026-03-16 Pavel Safronov | 1 | import { defineConfig } from 'vite'; |
b4e7f682 2026-03-16 Pavel Safronov | 2 | import checker from 'vite-plugin-checker'; |
b10cf38c 2026-10-27 Pavel Safronov | 3 | import fuzzyworld from 'fuzzyworld-tools/vite'; |
4e701dc7 2026-03-16 Pavel Safronov | 4 | |
| 5 | export default defineConfig({ | |
| 6 | root: 'src', | |
b4e7f682 2026-03-16 Pavel Safronov | 7 | plugins: [ |
b10cf38c 2026-10-27 Pavel Safronov | 8 | fuzzyworld(), |
b4e7f682 2026-03-16 Pavel Safronov | 9 | checker({ |
| 10 | typescript: true, | |
| 11 | }), | |
| 12 | ], | |
4e701dc7 2026-03-16 Pavel Safronov | 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 | }); |