Commit 15ee097a8ba9aeb4ad7c59c5c873305a2655c77d

Authored by YunaiV
1 parent 89da744e

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

Showing 1 changed file with 1 additions and 0 deletions
yudao-ui-admin/vue.config.js
@@ -63,6 +63,7 @@ module.exports = { @@ -63,6 +63,7 @@ module.exports = {
63 plugins: [ 63 plugins: [
64 // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件 64 // http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
65 new CompressionPlugin({ 65 new CompressionPlugin({
  66 + cache: false, // 不启用文件缓存
66 test: /\.(js|css|html)?$/i, // 压缩文件格式 67 test: /\.(js|css|html)?$/i, // 压缩文件格式
67 filename: '[path].gz[query]', // 压缩后的文件名 68 filename: '[path].gz[query]', // 压缩后的文件名
68 algorithm: 'gzip', // 使用gzip压缩 69 algorithm: 'gzip', // 使用gzip压缩