Browse Source

v3.8.3 默认不启用压缩文件缓存防止node_modules过大

YunaiV 2 years ago
parent
commit
15ee097a8b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      yudao-ui-admin/vue.config.js

+ 1 - 0
yudao-ui-admin/vue.config.js

@@ -63,6 +63,7 @@ module.exports = {
     plugins: [
       // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
       new CompressionPlugin({
+        cache: false,                   // 不启用文件缓存
         test: /\.(js|css|html)?$/i,     // 压缩文件格式
         filename: '[path].gz[query]',   // 压缩后的文件名
         algorithm: 'gzip',              // 使用gzip压缩