diff --git a/packages/stdf/vite.config.ts b/packages/stdf/vite.config.ts index c344438..e1de50b 100644 --- a/packages/stdf/vite.config.ts +++ b/packages/stdf/vite.config.ts @@ -4,5 +4,17 @@ import svgSprite from 'rollup-plugin-stdf-icon'; export default defineConfig({ plugins: [sveltekit(), svgSprite([{ inFile: 'src/assets/svgs', outFile: 'static/fonts', fileName: 'symbol' }])], - server: { hmr: true, host: '0.0.0.0', port: 8888 } + server: { hmr: true, host: '0.0.0.0', port: 8888 }, + build: { + assetsDir: 'build', + rollupOptions: { + output: { + manualChunks: (id: string) => { + if (id.includes('node_modules')) { + return 'vendor/index'; + } + } + } + } + } });