fix: color switching problem in prod env; 🐛

修复:生产环境下颜色切换问题;
This commit is contained in:
iczer 2020-07-08 10:33:25 +08:00
parent 4063a4f08a
commit 8cbde7bff5

View File

@ -20,6 +20,14 @@ module.exports = {
}) })
) )
}, },
chainWebpack: config => {
config
.plugin('optimize-css')
.tap(args => {
args[0].cssnanoOptions.preset[1].colormin = false
return args
})
},
css: { css: {
loaderOptions: { loaderOptions: {
less: { less: {