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: support legal comments #143

Closed JeanMeche closed 6 months ago

JeanMeche commented 11 months ago

The Angular CLI would like to support critters in legal comments. Legal comments have a leading ! and aren't removed at build times.

Cf https://esbuild.github.io/api/#legal-comments

cc @alan-agius4

janicklas-ralph commented 6 months ago

There are some tests failing. Good to merge after they are fixed

JeanMeche commented 6 months ago

@janicklas-ralph We should be good now.