From 64f9cbe6b808157922b9135163f8f44c986f21da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Fri, 22 Jun 2018 10:02:21 +0800 Subject: [PATCH] fix #1707 Duplicate classname --- .webpackrc.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.webpackrc.js b/.webpackrc.js index da3cc37c..07289577 100755 --- a/.webpackrc.js +++ b/.webpackrc.js @@ -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('--', '-'); }, }, -- GitLab