Produce cleaner readable and minified CSS files.
Review Request #13618 — Created March 6, 2024 and submitted — Latest diff uploaded
We now depend on
cleancss, a tool that helps consolidate, clean, and
minify or beautify CSS files. It will take care of consolidating
redundant rules and media selectors, removing comments, using more terse
forms of CSS rules, and more.This is used as part of our build pipeline. We produce an initial
_build/ink.cssfile, which then gets turned into alib/ink.cssthat
is readable but optimized, and alib/ink.min.cssthat is compact and
suited for browsers.
Built the CSS. Compared the resulting versions to the source files,
verifying that nothing important was lost but that a lot of redundancy
was cleaned up.Also verified that the
ink.cssis readable whileink.min.cssis
minified.