|
@@ -34,8 +34,8 @@ 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: {
|
|
@@ -58,15 +58,11 @@ module.exports = {
|
|
|
// resources: path.relative(__dirname, '../src/assets/css/punlic-style.scss')
|
|
|
// }
|
|
|
// })
|
|
|
-<<<<<<< HEAD
|
|
|
- }
|
|
|
-=======
|
|
|
- },
|
|
|
->>>>>>> 2484e009369e1b84df1a31da8fc957968006b2e5
|
|
|
- // 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: {
|