Commit 2aab0377556d6b56b7f78900748881ad54bb9f26
Committed by
Gitee
!18 update ant-design-vue-jeecg/vue.config.js.
Merge pull request !18 from 光速蜗牛/N/A
Showing
1 changed file
with
1 additions
and
1 deletions
ant-design-vue-jeecg/vue.config.js
... | ... | @@ -38,7 +38,7 @@ module.exports = { |
38 | 38 | //生产环境,开启js\css压缩 |
39 | 39 | if (process.env.NODE_ENV === 'production') { |
40 | 40 | config.plugin('compressionPlugin').use(new CompressionPlugin({ |
41 | - test: /\.js$|.\css|.\less/, // 匹配文件名 | |
41 | + test: /\.(js|css|less)$/, // 匹配文件名 | |
42 | 42 | threshold: 10240, // 对超过10k的数据压缩 |
43 | 43 | deleteOriginalAssets: false // 不删除源文件 |
44 | 44 | })) |
... | ... |