Skip to content

Commit

Permalink
perf: split activities.json from index (yihong0618#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
orionna319 authored and M Anshori committed Mar 2, 2024
1 parent 34d7477 commit cf8962f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,14 @@ export default defineConfig({
build: {
manifest: true,
outDir: './dist', // for user easy to use, vercel use default dir -> dist
rollupOptions: {
output: {
manualChunks: (id: string) => {
if (id.includes('activities')) {
return 'activities'
}
},
}
},
},
});

0 comments on commit cf8962f

Please sign in to comment.