Browse Source

贷款-文件打包文件名改为hash

panyong 4 years ago
parent
commit
f7b497e052
1 changed files with 4 additions and 4 deletions
  1. 4 4
      htmldev/loan/vue.config.js

+ 4 - 4
htmldev/loan/vue.config.js

@@ -62,8 +62,8 @@ module.exports = {
       }
     },
     output: {
-      filename: 'js/[name].js' + timestamp,
-      chunkFilename: 'js/[name].js' + timestamp
+      filename: 'js/[name].[hash].js' + timestamp,
+      chunkFilename: 'js/[name].[hash].js' + timestamp
     },
     plugins: process.env.NODE_ENV !== 'development' ? [
       new FileManagerPlugin({
@@ -89,8 +89,8 @@ module.exports = {
   },
   css: {
     extract: {
-      filename: 'css/[name].css' + timestamp,
-      chunkFilename: 'css/[name].css' + timestamp
+      filename: 'css/[name].[hash].css' + timestamp,
+      chunkFilename: 'css/[name].[hash].css' + timestamp
     },
     sourceMap: false
   }