Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
599316527 opened this issue Jul 30, 2018 · 0 comments
Open

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

599316527 opened this issue Jul 30, 2018 · 0 comments
Assignees
Labels

Comments

@599316527
Copy link

599316527 commented Jul 30, 2018

.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 处理吧,这么复杂的正则鬼知道会发生什么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants