From 7fd1ec38f7219f6f27ee1d19c560269b4abd1a6a Mon Sep 17 00:00:00 2001 From: chuzhixin <1204505056@qq.com> Date: Mon, 19 Oct 2020 20:57:50 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=E4=BF=AE=E5=A4=8Dgzip=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 3dcc8ad..bde8ce5 100644 --- a/vue.config.js +++ b/vue.config.js @@ -130,7 +130,7 @@ module.exports = { .plugin('compression') .use(CompressionWebpackPlugin, [ { - filename: '[path].gz[query]', + filename: '[path][base].gz[query]', algorithm: 'gzip', test: new RegExp( '\\.(' + productionGzipExtensions.join('|') + ')$'