Commit 64f9cbe6 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

fix #1707 Duplicate classname

parent 08739b59
......@@ -38,7 +38,7 @@ export default {
return localName;
}
let antdProPath = context.resourcePath.match(/src(.*)/)[1];
let antdProPath = context.resourcePath.match(/src(.*)/)[1].replace('.less', '');
if (context.resourcePath.includes('components')) {
antdProPath = antdProPath.replace('components/', '');
}
......@@ -46,7 +46,6 @@ export default {
.split('/')
.map(a => a.replace(/([A-Z])/g, '-$1'))
.map(a => a.toLowerCase());
arr.pop();
return `antd-pro${arr.join('-')}-${localName}`.replace('--', '-');
},
},
......
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