SassNinja / postcss-extract-media-query

PostCSS plugin to extract all media query from CSS and emit as separate files.
MIT License
130 stars 20 forks source link

Can this be used to only combine media queries? #7

Closed qodesmith closed 5 years ago

qodesmith commented 5 years ago

I see that this plugin is able to combine similar media queries. Is there a way to only use this feature without extracting the queries to their own file?

I used to use the mq-packer plugin for postcss to combine similar media queries. Unfortunately that plugin is deprecated and no longer maintained.

SassNinja commented 5 years ago

Hi @qodesmith

as the name points out this plugin is supposed to extract something, not reorder or rather merge only.

However you'll get your desired result when you set output.path to null