diff --git a/config/config.js b/config/config.js index 245dbabd6811685651a1f139aef6fa2ced8e74ff..bd925e514fb0829f5f68b95f36922142ebf01888 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'))