perf(frontend): minify file names

Resolve #10924
This commit is contained in:
syuilo 2023-05-30 18:55:22 +09:00
parent 4256e20a7f
commit d7efdd7123

View File

@ -129,6 +129,8 @@ export function getConfig(): UserConfig {
vue: ['vue'], vue: ['vue'],
photoswipe: ['photoswipe', 'photoswipe/lightbox', 'photoswipe/style.css'], 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, cssCodeSplit: true,