Possible to run postcss-rewrite-url before postcss-bundler?
#1333
-
|
I was looking into replacing I found postcss/postcss#1786 (comment) which talks about an "event system" but I couldn't find anything about how plugins could inform each other about what they've done within the same pass (if this is even possible). Is it possible to make this work right now, or would postcssBundler({
insertBefore: {
'postcss-import': postcssRewriteUrl({ rewriter: myRewriter })
}
})
? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Ha, yeah, you are right. I should also implement the same thing as |
Beta Was this translation helpful? Give feedback.
-
|
I tried it, and it works! However, I found one more edge case: Nested |
Beta Was this translation helpful? Give feedback.
Ha, yeah, you are right.
I should also implement the same thing as
AtRuleandDeclarationin theOncehook.I will do so later today :)