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

Replace fs with fs-extra #45

Closed bitfella closed 5 years ago

bitfella commented 5 years ago

As discussed in issue #44, this PR switches to fs-extra and uses its outputFile method instead of writeFile, to fix a bug when trying to output nested folders critical paths.

zgreen commented 5 years ago

Thanks!