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: stylesheet sorting #149

Open imslepov opened 9 months ago

imslepov commented 9 months ago

I've encountered an issue with sorting external stylesheets. If the file layout.css has a larger file size than styles.css but comes first, then after processing, it will end up positioned after styles.css.

This violates the specificity of CSS selectors, and as a result, the styles becomes distorted.