zgreen / postcss-critical-css

PostCSS plugin to define and output critical CSS using custom atRules, and/or custom CSS properties. Critical CSS may be output to one or more files, as defined within the plugin options or within the CSS.
MIT License
86 stars 11 forks source link

does not work with media #2

Closed copyhold closed 7 years ago

copyhold commented 7 years ago

Proof here

git@github.com:copyhold/postcss-critical-css.git

zgreen commented 7 years ago

Hey, thanks for the bug report. I'll take a look.

zgreen commented 7 years ago

Confirmed. I've got it fixed in https://github.com/zgreen/postcss-critical-css/tree/at-rules, which I hope to have merged soon.

zgreen commented 7 years ago

@copyhold I've merged a fix; install the latest version and test it out if you want—thanks!

copyhold commented 7 years ago

Cool, it worked. Thank you