Skip to content

Commit 4640968

Browse files
committed
v3.8.3 默认不启用压缩文件缓存防止node_modules过大
1 parent b4ce5af commit 4640968

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vue.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ module.exports = {
6363
plugins: [
6464
// http://doc.ruoyi.vip/ruoyi-vue/other/faq.html#使用gzip解压缩静态文件
6565
new CompressionPlugin({
66+
cache: false, // 不启用文件缓存
6667
test: /\.(js|css|html)?$/i, // 压缩文件格式
6768
filename: '[path].gz[query]', // 压缩后的文件名
6869
algorithm: 'gzip', // 使用gzip压缩

0 commit comments

Comments
 (0)