Skip to content

Conversation

polarbirke
Copy link
Member

@polarbirke polarbirke commented Jul 28, 2023

This is a continuation of the problem-solving started in #28 and #29.

gulp-clean-css has probably become stale (with its author completely unresponsive), and while clean-css still is the most downloaded CSS minification package on npm, its author has put the project into "maintenance mode" and will no longer actively work on it.

Addendum June 2025: gulp-clean-css seems to completely remove Cascade Layers

CSSO is a CSS minifier that has been around almost as long (since 2015) as clean-css (since 2011). Minification is significantly faster than clean-css.

Downsides:

  • postcss-csso has a bug with container queries (open since 2022, not fixed 2025-02-25)
  • gulp-csso works well, but prolongs our dependence on gulp
  • fast, but not as fast as lightningcss

As it is logical to first purge unused CSS before performing any other transformations on the remaining code, the order of the postcss plugins is adjusted accordingly.

@polarbirke polarbirke changed the title Replace gulp-clean-css with gulp-csso Replace gulp-clean-css with gulp-csso (Case 161784) Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant