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

Keep the media in same file #24

Closed Faisal-Manzer closed 4 years ago

Faisal-Manzer commented 4 years ago

I am using Preact with custom postcss.config.js. I want my styles to stay in same file or in the same output (inline CSS). How to do that.

Faisal-Manzer commented 4 years ago

Sorry. There was a new plugin by @SassNinja itself which does this greatly. https://github.com/SassNinja/postcss-combine-media-query combines all the media queries, this was what I needed.

SassNinja commented 4 years ago

glad to hear my other plugin has solved your issue =)

btw it'll be mandatory for this job in future anyway as I'm going to remove the combine option in the next major release