Skip to content

Commit db82496

Browse files
authored
docs: emit only hashed filenames (#40)
1 parent 7f2d01f commit db82496

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/nuxt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ export default defineNuxtConfig({
2222
domain: 'regexp.dev',
2323
},
2424
hooks: {
25+
'vite:extendConfig'(config, { isClient }) {
26+
if (isClient) {
27+
// TODO: update when updating to rc7
28+
config.build.rollupOptions.output.chunkFileNames = '[hash].mjs'
29+
}
30+
},
2531
'tailwindcss:config'(config) {
2632
config.theme.extend.colors.primary = {
2733
'50': '#ff46c5',

0 commit comments

Comments
 (0)