Skip to content

cusotm-common 对 css scope 的处理不支持 @keyframes #54

@599316527

Description

@599316527

.split(/\}/g).filter(function (line) {
if (line) {
line = line.trim();
var tag = '^\\s*' + extName + '.*';
var reg = new RegExp(tag);
if (!/^\@.*/.test(line) && !reg.exec(line)) {
ct += extName + ' ' + line + '}';
} else {
ct += line + '}';
}

还是变成 ast 处理吧,这么复杂的正则鬼知道会发生什么

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions