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

这个正则应该要这样写才对
This commit is contained in:
光速蜗牛 2020-08-10 14:49:38 +08:00 committed by Gitee
parent fbaa1a53f5
commit be323b75a1
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ module.exports = {
//生产环境开启js\css压缩
if (process.env.NODE_ENV === 'production') {
config.plugin('compressionPlugin').use(new CompressionPlugin({
test: /\.js$|.\css|.\less/, // 匹配文件名
test: /\.(js|css|less)$/, // 匹配文件名
threshold: 10240, // 对超过10k的数据压缩
deleteOriginalAssets: false // 不删除源文件
}))