Skip to content
Snippets Groups Projects
Commit d7efdd71 authored by syuilo's avatar syuilo
Browse files

perf(frontend): minify file names

Resolve #10924
parent 4256e20a
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,8 @@ export function getConfig(): UserConfig {
vue: ['vue'],
photoswipe: ['photoswipe', 'photoswipe/lightbox', 'photoswipe/style.css'],
},
chunkFileNames: process.env.NODE_ENV === 'production' ? '[hash:8].js' : '[name]-[hash:8].js',
assetFileNames: process.env.NODE_ENV === 'production' ? '[hash:8][extname]' : '[name]-[hash:8][extname]',
},
},
cssCodeSplit: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment