mrnocreativity / postcss-critical-split

A PostCSS plugin that takes existing CSS files and splits out the annotated critical styles into a seperate file.
MIT License
89 stars 6 forks source link

Use PostCSS 8 #22

Closed ocean90 closed 3 years ago

ocean90 commented 3 years ago

Fixes https://github.com/mrnocreativity/postcss-critical-split/issues/21.

This updates the plugin to be compatible with PostCSS 8 based in the official migration guide.

This also updates the required Node version to 10 which allows us to use more modern JavaScript syntax which makes the merge dependency obsolete. This only required an update of the jest dependency. All tests are still passing.

@mrnocreativity Please let me know if the PRs looks good to you or if I should split the updates.

mrnocreativity commented 3 years ago

Looks fantastic from what I can tell. Thanks for this. It's been a long time coming. Lots of stuff in there that I wanted to look into but never really found the time (or the willpower).