-
Notifications
You must be signed in to change notification settings - Fork 11
Description
Hi, handy plugin, love this. 😄
I created a postcss plugin: postcss-font-grabber
. @FTWinston use it with postcss-import-url
, found an issue: AaronJan/postcss-font-grabber#20.
According to the postcss docs:
If you create a node manually (e.g., with postcss.decl()), that node will not have a source property and will be absent from the source map. For this reason, the plugin developer should consider cloning nodes to create new ones (in which case the new node’s source will reference the original, cloned node) or setting the source property manually.
I think we could set the source
property for imported elements (as the same as the @import
statement is in), to improve the compatibility, so postcss-import-url
can works with some other plugins.
What do you think? Thanks! 🤝