fix(config): css文件动画名缺少替换导致动画失效

This commit is contained in:
chenhao 2024-03-26 15:38:19 +08:00
parent 18f9697d13
commit c249b6693c

View File

@ -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'))