hail2u/node-css-mqpacker

Split media to different filles

yoyurec opened this issue · 4 comments

I'm not good with PostCSS plugins development, so will ask you:
"Is it possible after sorting media queries, output it to different CSS files?"

Like this plugin do https://github.com/bjork24/grunt-media-query-extractor

Tnx!

It can be done with PostCSS (successfully splitting with source maps), but is it a job of this plugin? I think CSS splitting should be provided by a separated plugin.

successfully splitting with source maps

i see...
but why source maps example (in case if this is special for me)?

If you don’t need to support Source Maps, you could split media queries with grep and split command, similar Node.js packages, or Grunt plugin you mentioned. So, I understood what you want is splitting CSS file into 2 or more CSS files with Source Maps.

tnx!