Skip to content

Commit 359ad0f

Browse files
committed
docs: update custom chunk name
1 parent 7cb3f93 commit 359ad0f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

docs/nuxt.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@ export default defineNuxtConfig({
2323
},
2424
hooks: {
2525
'vite:extendConfig'(config, { isClient }) {
26-
if (isClient) {
27-
// TODO: update when updating to rc7
28-
config.build.rollupOptions.output.chunkFileNames = '[hash].mjs'
26+
if (isClient && !Array.isArray(config.build.rollupOptions.output)) {
27+
config.build.rollupOptions.output.chunkFileNames = '_nuxt/[hash].mjs'
2928
}
3029
},
3130
'tailwindcss:config'(config) {

0 commit comments

Comments
 (0)