@parcel/css
1.14.0 · 8 Sep 2022MPL-2.020.3k / weekRepositoryHomepagenpmAtom feed
1.14.0 is the newest release of 1.x.
In short
9 fixed
Release note
Improved performance
This release improves performance by avoiding string copies during parsing, and instead borrowing all strings stored in the AST from the input source code (i.e. just pointers). This also reduces memory usage. New benchmark results:
Improved minification
This release also improves minification of custom properties, and properties containing CSS variable references. Parcel CSS can now remove unnecessary whitespace and comments in these properties, and minify color values and numbers embedded within them. For example:
.foo {
color: var(--color, rgb(255, 255, 0));
}now minifies to:
.foo{color:var(--color,#ff0)}Minification of border related properties is also improved by better use of shorthands. For example, the following css:
.foo {
border-top: 1px solid black;
border-bottom: 1px solid black;
border-left: 2px solid black;
border-right: 2px solid black;
}now compiles to:
.foo {
border: 1px solid #000;
border-width: 1px 2px;
}Other fixes
Fix compilation of CSS nesting selectors with combinators in parent rule - 1e79fa7
Fix
list-style-typeproperty in CSS modules whennonevalue is used - 9d38efbFix dependency collection in image-set - 8378ae2
Fix vendor prefixing image-set - 0d01b83
Update prefix and compat data - 7060ca1
Fix transition vendor prefix decomposition - 718efba
Improve border shorthand minification - 46cca00
Fix compat logic with multiple targets - f1bb3cf
More progress on CLI, including sourcemap, nesting, and css-modules CLI flags - d13f86a
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.