Closed leereamsnyder closed 6 years ago
This makes the source map output for this plugin's changes a little nicer. Without it, in dev tools you'll see that the added rules have <no source>:
<no source>
However, with this change, we get the correct original source of the font-family declaration:
font-family
The technique for preserving the source or cloning elements comes right out of the PostCSS API documentation: http://api.postcss.org/Node.html#source
Thanks for making this plugin!
Thank you!
Included with 1.0.4
This makes the source map output for this plugin's changes a little nicer. Without it, in dev tools you'll see that the added rules have
<no source>
:However, with this change, we get the correct original source of the
font-family
declaration:The technique for preserving the source or cloning elements comes right out of the PostCSS API documentation: http://api.postcss.org/Node.html#source
Thanks for making this plugin!