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

fix: 修复样式隔离

parent a0671062
Pipeline #35612 passed with stages
...@@ -46,7 +46,8 @@ module.exports = { ...@@ -46,7 +46,8 @@ module.exports = {
if ( if (
context.resourcePath.includes('node_modules') || context.resourcePath.includes('node_modules') ||
context.resourcePath.includes('ant.design.pro.less') || context.resourcePath.includes('ant.design.pro.less') ||
context.resourcePath.includes('global.less') context.resourcePath.includes('global.less') ||
context.resourcePath.includes('ThemeColor.less')
) { ) {
return localName; return localName;
} }
...@@ -59,7 +60,7 @@ module.exports = { ...@@ -59,7 +60,7 @@ module.exports = {
.split('/') .split('/')
.map(a => a.replace(/([A-Z])/g, '-$1')) .map(a => a.replace(/([A-Z])/g, '-$1'))
.map(a => a.toLowerCase()); .map(a => a.toLowerCase());
return `panda-pro${arr.join('-')}-${localName}`.replace( return `panda-console-base${arr.join('-')}-${localName}`.replace(
/--/g, /--/g,
'-', '-',
); );
...@@ -68,5 +69,13 @@ module.exports = { ...@@ -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: {} 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