Skip to content

Commit

Permalink
build: optimize chunking strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisSeckar committed Nov 2, 2024
1 parent cf7f68b commit 7fe04e2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ export default defineNuxtConfig({

compatibilityDate: '2024-11-01',

vite: {
build: {
rollupOptions: {
output: {
manualChunks(id: string) {
if (id.includes('pinia') || id.includes('Pinia')) {
return 'pinia'
}
},
},
},
},
},

eslint: {
config: {
stylistic: true,
Expand Down

0 comments on commit 7fe04e2

Please sign in to comment.