From be323b75a14b8e33a44b0f11e3f342e5c9c43f84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=89=E9=80=9F=E8=9C=97=E7=89=9B?= <361946749@qq.com> Date: Mon, 10 Aug 2020 14:49:38 +0800 Subject: [PATCH] =?UTF-8?q?update=20ant-design-vue-jeecg/vue.config.js.=20?= =?UTF-8?q?=E8=BF=99=E4=B8=AA=E6=AD=A3=E5=88=99=E5=BA=94=E8=AF=A5=E8=A6=81?= =?UTF-8?q?=E8=BF=99=E6=A0=B7=E5=86=99=E6=89=8D=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/vue.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ant-design-vue-jeecg/vue.config.js b/ant-design-vue-jeecg/vue.config.js index a63d7bbb..454e2225 100644 --- a/ant-design-vue-jeecg/vue.config.js +++ b/ant-design-vue-jeecg/vue.config.js @@ -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 // 不删除源文件 }))