north-star / main_old / files / vite.config.js
Branch main_old · default branch · all branches
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'; |
4e701dc7 2026-03-16 Pavel Safronov | 3 | |
| 4 | export default defineConfig({ | |
| 5 | root: 'src', | |
| 6 | base: './', | |
b4e7f682 2026-03-16 Pavel Safronov | 7 | plugins: [ |
| 8 | checker({ | |
| 9 | typescript: true, | |
| 10 | }), | |
| 11 | ], | |
4e701dc7 2026-03-16 Pavel Safronov | 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 | }); |