260720
This commit is contained in:
@@ -43,10 +43,12 @@ export default defineConfig(({ command }) => {
|
||||
preprocessorOptions: {
|
||||
less: {
|
||||
javascriptEnabled: true,
|
||||
plugins: [new DynamicAntdLess()],
|
||||
// plugins: [new DynamicAntdLess()],
|
||||
modifyVars: {
|
||||
// 组件样式开发环境全局引入生产环境按需引入
|
||||
"style-entry-file": isBuild ? "as-needed" : "global-import"
|
||||
"style-entry-file": isBuild ? "as-needed" : "global-import",
|
||||
// 统一主题主色(避免按需构建时丢失主题色)
|
||||
"primary-color": "#1590ff"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user