Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

PostHTML #25

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

PostHTML #25

wants to merge 3 commits into from

Conversation

devinus
Copy link

@devinus devinus commented Feb 2, 2016

@elbuo8
Copy link

elbuo8 commented Feb 2, 2016

👍

@motdotla
Copy link
Contributor

motdotla commented Feb 2, 2016

💥 👍

var ast = postcssSafeParser($style.text());
self.processRules(ast.nodes, lookups);
$style.text(ast.toString());
return tree.walk(function(node) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tree.match({ tag: 'style', content: true }, function() {
    var ast = postcssSafeParser([].concat(node.content).join(''));
    self.processRules(ast.nodes, lookups);
    node.content = ast.toString();
    return node;
});

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't walk faster @voischev ?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

None yet

4 participants