clean-css v5.0.0 Release Notes

Release Date: 2021-01-29 // over 3 years ago
    • ➕ Adds a way process input files without bundling it into one big output file.
    • ➕ Adds level 1 and level 2 optimization plugins.
    • 0️⃣ Disables URL rebasing by default.
    • 0️⃣ Disables URL unquoting by default.
    • 🚀 Drops support for Node.js 6 & 8 to support last 3 Node.js releases: 10, 12, and 14.
    • 🛠 Fixed issue #889 - whitelisted level 1 optimizations.
    • 🛠 Fixed issue #975 - incorrect block name optimization.
    • 🛠 Fixed issue #1009 - whitespace around comments.
    • 🛠 Fixed issue #1021 - allow one- and two-letter property names.
    • 🛠 Fixed issue #1022 - merging into shorthands new property positioning.
    • 🛠 Fixed issue #1032 - wrong order of merged shorthands with inherit.
    • 🛠 Fixed issue #1043 - calc fallback removed within other function.
    • 🛠 Fixed issue #1045 - non-standard protocol-less URL first slash removed.
    • 🛠 Fixed issue #1050 - correctly keeps default animation duration if delay is also set.
    • 🛠 Fixed issue #1053 - treats calc() as first class width value.
    • 🛠 Fixed issue #1055 - supports 4- and 8-character hex with alpha color notation.
    • 🛠 Fixed issue #1057 - level 2 optimizations and quoted font family name.
    • 🛠 Fixed issue #1059 - animation time units as CSS expressions.
    • 🛠 Fixed issue #1060 - variable removed when shorthand's only value.
    • 🛠 Fixed issue #1062 - wrong optimization of CSS pseudo-classes with selector list.
    • 🛠 Fixed issue #1073 - adds support for non-standard rpx units.
    • 🛠 Fixed issue #1075 - media merging and variables.
    • 🛠 Fixed issue #1087 - allow units with any case.
    • 🛠 Fixed issue #1088 - building source maps with source preserved via comments.
    • 🛠 Fixed issue #1090 - edge case in merging for border and border-image.
    • 🛠 Fixed issue #1103 - don't allow merging longhand into unset shorthand.
    • 🛠 Fixed issue #1115 - incorrect multiplex longhand into shorthand merging.
    • 🛠 Fixed issue #1117 - don't change zero values inside min, max, and clamp functions.
    • 🛠 Fixed issue #1122 - don't wrap data URI in single quotes.
    • 🛠 Fixed issue #1125 - quotes stripped from withing @supports clause.
    • 🛠 Fixed issue #1128 - take variables into account when reordering properties.
    • 🛠 Fixed issue #1132 - vendor-prefixed classes inside :not().
    • 💅 Reworks all level 1 optimizations to conform to plugin style.