From 8cbde7bff5857f8e3b8bb802389d7747cfc1e9a6 Mon Sep 17 00:00:00 2001 From: iczer <1126263215@qq.com> Date: Wed, 8 Jul 2020 10:33:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20color=20switching=20problem=20in=20prod?= =?UTF-8?q?=20env;=20:bug:=20=E4=BF=AE=E5=A4=8D=EF=BC=9A=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E9=A2=9C=E8=89=B2=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vue.config.js b/vue.config.js index 93a72e7..e894155 100644 --- a/vue.config.js +++ b/vue.config.js @@ -20,6 +20,14 @@ module.exports = { }) ) }, + chainWebpack: config => { + config + .plugin('optimize-css') + .tap(args => { + args[0].cssnanoOptions.preset[1].colormin = false + return args + }) + }, css: { loaderOptions: { less: {