Hwt 2 年 前
コミット
64a28645f8
1 ファイル変更5 行追加5 行削除
  1. 5 5
      operationSupport/vue.config.js

+ 5 - 5
operationSupport/vue.config.js

@@ -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: {