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 Kugin committed Dec 9, 2023
1 parent de8af17 commit 0016b59
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 @@ -11,5 +11,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 0016b59

Please sign in to comment.