mirror of
https://github.com/iczer/vue-antd-admin
synced 2025-04-06 04:00:06 +08:00
fix: start problem in dev env; 🐛
修复:开发环境下的启动问题;
This commit is contained in:
parent
8cbde7bff5
commit
32577b038a
@ -13,7 +13,6 @@ module.exports = {
|
||||
let palettes = generate(color, opts)
|
||||
const primary = palettes[5]
|
||||
palettes = palettes.concat(generate(primary))
|
||||
console.log(palettes)
|
||||
const darkBgColors = getDarkColors(color, _theme)
|
||||
const _themeCfg = themeCfg[_theme]
|
||||
const bgColors = Object.keys(_themeCfg)
|
||||
|
@ -21,12 +21,14 @@ module.exports = {
|
||||
)
|
||||
},
|
||||
chainWebpack: config => {
|
||||
config
|
||||
.plugin('optimize-css')
|
||||
.tap(args => {
|
||||
args[0].cssnanoOptions.preset[1].colormin = false
|
||||
return args
|
||||
})
|
||||
// 生产环境下关闭css压缩的 colormin 项,因为此项优化与主题色替换功能冲突
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
config.plugin('optimize-css')
|
||||
.tap(args => {
|
||||
args[0].cssnanoOptions.preset[1].colormin = false
|
||||
return args
|
||||
})
|
||||
}
|
||||
},
|
||||
css: {
|
||||
loaderOptions: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user