Csso Versions Save

CSS minifier with structural optimizations

v4.0.2

4 years ago
  • Fixed clean stage to avoid exceptions when source has unparsed or bad parts (#369, #378, #380, #397)
  • Fixed wrong percentage sign removal for zero values (#382, #395)

v4.0.1

4 years ago
  • Bumped CSSTree to 1.0.0-alpha.37 to avoid source map generation inconsistency across Node.js versions

v4.0.0

4 years ago
  • Dropped support for Node < 8
  • Refreshed dev dependencies and scripts
  • Bumped CSSTree to 1.0.0-alpha.36 (#399)
  • Changed bundle files: dist/csso.js and dist/csso.min.js instead single dist/csso-browser.js (min version)
  • Expose compress() as syntax.compress()

v3.5.0

6 years ago
  • Migrated to CSSTree 1.0.0-alpha.27

WARN: Internal API (i.e. csso.syntax) was changed, see CSSTree's release notes for details

v3.4.0

6 years ago
  • Added percent sign removal for zero percentages for some properties that is safe (@RubaXa, #286)
  • Removed unit removal for zero values in -ms-flex due it breaks flex in IE10/11 (#362)
  • Improved performance of selectors comparison (@smelukov, #343)

v3.3.1

6 years ago
  • Fixed merge of position declarations when sticky fallback is using (thanks to @gruzzilkin, #356)

v3.3.0

6 years ago
  • Migrated to CSSTree 1.0.0-alpha25
    • Changed AST format (see CSSTree change log for details)
    • Fixed performance issue when generate CSS with source map (quadratic increase in time depending on the size of the CSS)

v3.2.0

6 years ago
  • Fixed named color compression to apply only when an identifier is guaranteed to be a color. Used CSSTree's feature to determine the meaning of a part of a value based on W3C specs. No more false positive matches like Arial Black, and with no hacks ;)
  • Added lifting of @keyframes to the beginning of style sheet
  • Added removal of @keyframes, @media and @supports with no prelude
  • Added removal of duplicate @keyframes (#202)
  • Added new option forceMediaMerge to force media rules merging. It's unsafe in general, but works fine in many cases. Use it on your own risk (#350)
  • Bumped CSSTree to 1.0.0-alpha23

v3.1.1

7 years ago
  • Fixed crash on a number processing when it used not in a list (#335)

v3.1.0

7 years ago
  • Implemented optimisation for none keyword in border and outline properties (@zoobestik, #41)
  • Implemented replacing rgba(x, x, x, 0) to transparent
  • Fixed plus sign omitting for numbers following identifier, hex color, number or unicode range, since it can change the meaning of CSS (e.g. calc(1px+2px) has been optimized to calc(1px2px) before, now it stays the same)
  • Improved usage filtering for nested selectors (i.e. for :nth-*(), :has(), :matches and other pseudos)
  • Implemented blacklist filtering in usage (#334, see Black list filtering)
  • Improved white space removing, now white spaces are removing in the beginning and at the ending of sequences, and between stylesheet and block nodes
  • Bumped css-tree to 1.0.0-alpha19