|
@@ -1,7 +1,7 @@
|
|
|
/*
|
|
|
* @Author: zouwenying
|
|
|
* @Date: 2020-10-21 18:14:35
|
|
|
- * @LastEditTime: 2022-10-10 17:46:27
|
|
|
+ * @LastEditTime: 2022-10-11 16:35:08
|
|
|
* @LastEditors: D4THYL3
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: \vue-manage-system-master\vue.config.js
|
|
@@ -35,8 +35,8 @@ module.exports = {
|
|
|
});
|
|
|
|
|
|
// // 配置每次打包浏览器缓存文件名的随机性
|
|
|
- // 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: {
|
|
@@ -62,8 +62,8 @@ module.exports = {
|
|
|
},
|
|
|
extract: {
|
|
|
// 打包后css文件名称添加时间戳
|
|
|
- // filename: `css/[name].${new Date().getTime()}.css`,
|
|
|
- // chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`
|
|
|
+ filename: `css/[name].${new Date().getTime()}.css`,
|
|
|
+ chunkFilename: `css/chunk.[id].${new Date().getTime()}.css`
|
|
|
}
|
|
|
},
|
|
|
configureWebpack: {
|