Commit e8313d37 authored by 张烨's avatar 张烨

fix: 样式打包无法覆盖ant样式问题

parent 734221d9
......@@ -56,8 +56,8 @@ module.exports = options => ({
}
const match = context.resourcePath.match(/src(.*)/);
if (match && match[1]) {
const matchAntd = /^ant/.test(localName);
if (match && match[1] && !matchAntd) {
const antdProPath = match[1].replace('.less', '');
const arr = slash(antdProPath)
.split('/')
......
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