fix(config): css文件动画名缺少替换导致动画失效
This commit is contained in:
parent
18f9697d13
commit
c249b6693c
|
|
@ -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'))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user