diff --git a/config/config.js b/config/config.js index 245dbab..bd925e5 100644 --- a/config/config.js +++ b/config/config.js @@ -101,7 +101,7 @@ export default { } const match = context.resourcePath.match(/src(.*)/); if (match && match[1]) { - const antdProPath = match[1].replace('.less', ''); + const antdProPath = match[1].replace('.less', '').replace('.css', '').replace('.scss', '').replace('sass', ''); const arr = slash(antdProPath) .split('/') .map(a => a.replace(/([A-Z])/g, '-$1'))