Commit be323b75a14b8e33a44b0f11e3f342e5c9c43f84

Authored by 光速蜗牛
Committed by Gitee
1 parent fbaa1a53

update ant-design-vue-jeecg/vue.config.js.

这个正则应该要这样写才对
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 }))
... ...