GoogleChromeLabs / critters

🦔 A Webpack plugin to inline your critical CSS and lazy-load the rest.
https://npm.im/critters-webpack-plugin
Apache License 2.0
3.42k stars 108 forks source link

fix: fixes issue where `:not()` contains multiple removed params #128

Closed rmachado-studocu closed 1 year ago

rmachado-studocu commented 1 year ago

What does this PR do

By adding a replacement function, the arguments are extracted and split by ,, then combined back.

It is my first PR to this project, so pretty please give me feedback so that I can improve it as much as possible 👍 Thanks in advance.

Relates to #102

rmachado-studocu commented 1 year ago

Closing my PR in favor of @alan-agius4 's one (https://github.com/GoogleChromeLabs/critters/pull/129)