From 13019633491f95109ca2c6e5d270664049b11fa1 Mon Sep 17 00:00:00 2001 From: gxfeng Date: Fri, 25 Feb 2022 13:19:58 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E6=89=93=E5=8C=85=E5=90=8E./dist/in?= =?UTF-8?q?dex.html=E6=96=87=E4=BB=B6=E4=B8=AD=E5=8F=8C=E5=BC=95=E5=8F=B7?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vue.config.js b/vue.config.js index 4856ed02a7..3c4f1d9ea8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -119,5 +119,11 @@ module.exports = { config.optimization.runtimeChunk('single') } ) + + config.plugin('html') + .tap(args => { + args[0].minify.removeAttributeQuotes = false + return args + }) } } From ac85dc3869e004b44ad86c62b5af9feea94f69dd Mon Sep 17 00:00:00 2001 From: gxfeng Date: Fri, 25 Feb 2022 14:47:49 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=90=8Enpm=20run=20dev=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vue.config.js b/vue.config.js index 3c4f1d9ea8..587c67e041 100644 --- a/vue.config.js +++ b/vue.config.js @@ -117,13 +117,13 @@ module.exports = { }) // https:// webpack.js.org/configuration/optimization/#optimizationruntimechunk config.optimization.runtimeChunk('single') + + config.plugin('html') + .tap(args => { + args[0].minify.removeAttributeQuotes = false + return args + }) } ) - - config.plugin('html') - .tap(args => { - args[0].minify.removeAttributeQuotes = false - return args - }) } }