Open ckihneman opened 10 years ago
This would be excellent.
:+1:
:+1:
:+1: yes please address this
:+1: Would be a great addition
:+1:
:+1: I would love to see source-maps support for this plugin
:+1:
Struggling with this now. Would be awesome to support sourcemaps
Any news on this?
My current workaround was to use postcss with css-mqpacker and it works like a charm
Would be awesome to support sourcemaps
I love the idea here, but I've put a lot of effort into ensuring my source maps work properly. And unfortunately this plugin does not handle them. It throws the media query styles after any source map info right now (the bottom of the file).
For the record, from my tests, the plugin works as expected. For now, I'm just going to move this to a final production build step.
Some thoughts on where to go with this... https://github.com/ai/autoprefixer currently handles this situation. They get CSS piped to them, they look for current source maps, then modify the source map depending on what changes autoprefixer makes, then re-inline the source map. It looks like the author even made a library to help post process css: https://github.com/ai/postcss. Maybe you could leverage his efforts there to make your life easier?
And I found your plugin from this post from yeoman by Addy Osmani. So you may be picking up some more traction.