24 lines
674 B
JavaScript
24 lines
674 B
JavaScript
|
export default {
|
||
|
assetsDir: './static',
|
||
|
minify: true,
|
||
|
cssCodeSplit: true,
|
||
|
chunkSizeWarningLimit: 500,
|
||
|
terserOptions: {
|
||
|
compress: {
|
||
|
drop_console: true,
|
||
|
drop_debugger: true,
|
||
|
},
|
||
|
format: {
|
||
|
comments: false,
|
||
|
},
|
||
|
},
|
||
|
rollupOptions: {
|
||
|
output: {
|
||
|
chunkFileNames: (chunkInfo) => {
|
||
|
const facadeModuleId = chunkInfo.facadeModuleId ? chunkInfo.facadeModuleId.split('/') : [];
|
||
|
const fileName = facadeModuleId[facadeModuleId.length - 2] || '[name]';
|
||
|
return `static/${fileName}/[name].[hash].js`;
|
||
|
},
|
||
|
}
|
||
|
}
|
||
|
}
|