Skip to content

Commit

Permalink
[deno]build chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
dufu1991 committed Dec 13, 2024
1 parent c21b885 commit 8f293e9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/stdf/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
}
}
}
});

0 comments on commit 8f293e9

Please sign in to comment.