Commit 4d8a2026 authored by 邓晓峰's avatar 邓晓峰

fix: 修复样式隔离

parent a0671062
Pipeline #35612 passed with stages
......@@ -46,7 +46,8 @@ module.exports = {
if (
context.resourcePath.includes('node_modules') ||
context.resourcePath.includes('ant.design.pro.less') ||
context.resourcePath.includes('global.less')
context.resourcePath.includes('global.less') ||
context.resourcePath.includes('ThemeColor.less')
) {
return localName;
}
......@@ -59,7 +60,7 @@ module.exports = {
.split('/')
.map(a => a.replace(/([A-Z])/g, '-$1'))
.map(a => a.toLowerCase());
return `panda-pro${arr.join('-')}-${localName}`.replace(
return `panda-console-base${arr.join('-')}-${localName}`.replace(
/--/g,
'-',
);
......@@ -68,5 +69,13 @@ module.exports = {
},
},
},
lessLoader: {
modifyVars: {
// hack: `true; @import "~@/global.less";`,
'@ant-prefix': 'panda-console-base',
'@iconPrefixCls': 'panda-console-base-icon'
},
javascriptEnabled: true
},
esbuild: {}
};
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment