|
@@ -34,9 +34,9 @@ module.exports = {
|
|
|
viewportWidth: 1920 //传参
|
|
|
});
|
|
|
|
|
|
- // // 配置每次打包浏览器缓存文件名的随机性
|
|
|
- const filename = path.posix.join('js', `${new Date().getTime()}_[name].js`);
|
|
|
- config.mode('production').devtool(false).output.filename(filename).chunkFilename(filename);
|
|
|
+ // // // 配置每次打包浏览器缓存文件名的随机性
|
|
|
+ // const filename = path.posix.join('js', `${new Date().getTime()}_[name].js`);
|
|
|
+ // config.mode('production').devtool(false).output.filename(filename).chunkFilename(filename);
|
|
|
},
|
|
|
// 配置全局样式变量
|
|
|
css: {
|
|
@@ -59,12 +59,12 @@ module.exports = {
|
|
|
// resources: path.relative(__dirname, '../src/assets/css/punlic-style.scss')
|
|
|
// }
|
|
|
// })
|
|
|
- },
|
|
|
- extract: {
|
|
|
- // 打包后css文件名称添加时间戳
|
|
|
- filename: `css/[name].${new Date().getTime()}.css`,
|
|
|
- chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`
|
|
|
}
|
|
|
+ // extract: {
|
|
|
+ // // 打包后css文件名称添加时间戳
|
|
|
+ // filename: `css/[name].${new Date().getTime()}.css`,
|
|
|
+ // chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`
|
|
|
+ // }
|
|
|
},
|
|
|
configureWebpack: {
|
|
|
externals: {
|