cssnano/cssnano


A modular minifier, built on top of the PostCSS ecosystem.

https://cssnano.co

License: MIT

Language: CSS

Keywords: postcss



cssnano


A modular minifier, built on top of the PostCSS ecosystem.

NPM version Build Status Build status Coverage Status Gitter

cssnano is a modern, modular compression tool written on top of the PostCSS ecosystem, which allows us to use a lot of powerful features in order to compact CSS appropriately.

Our preset system allow you to load cssnano in a different configuration depending on your needs; the default preset performs safe transforms, whereas the advanced preset performs more aggressive transforms that are safe only when your site meets the requirements; but regardless of the preset you choose, we handle more than whitespace transforms!

Optimisations range from compressing colors & removing comments, to discarding overridden at-rules, normalising unicode-range descriptors, even mangling gradient parameters for a smaller output value! In addition, where it's made sense for a transform, we've added Browserslist to provide different output depending on the browsers that you support.

For further details check out the website:

You can now try cssnano online via Runkit!

Contributing

See CONTRIBUTING.md.

License

MIT © Ben Briggs

Project Statistics

Sourcerank 23
Repository Size 19.5 MB
Stars 2,907
Forks 224
Watchers 49
Open issues 36
Dependencies 13,262
Contributors 67
Tags 78
Created
Last updated
Last pushed

Top Contributors See all

Ben Briggs Greenkeeper Bogdan Chadkin Evilebot Tnawi Andy Jansson Chris Eppstein Selwyn Andrey Sitnik GU Yiling Ivan Buryak Aarni Koskela Charlike Mike Reagent Olsten Larck (old Charlike) Грачев Евгений Anton Tuzhik Ben McKernan pigcan Sindre Sorhus Jordan Drake Stephen Way

Packages Referencing this Repo

postcss-merge-idents
Merge keyframe and counter style identifiers.
Latest release 4.0.1 - Updated - 2.91K stars
postcss-minify-font-values
Minify font declarations with PostCSS
Latest release 4.0.2 - Updated - 2.91K stars
postcss-reduce-transforms
Reduce transform functions with PostCSS.
Latest release 4.0.2 - Updated - 2.91K stars
postcss-ordered-values
Ensure values are ordered consistently in your CSS.
Latest release 4.1.2 - Updated - 2.91K stars
postcss-normalize-positions
Normalize keyword values for position into length values.
Latest release 4.0.2 - Updated - 2.91K stars
postcss-reduce-idents
Reduce custom identifiers with PostCSS.
Latest release 4.0.2 - Updated - 2.91K stars
postcss-normalize-whitespace
Trim whitespace inside and around CSS rules & declarations.
Latest release 4.0.2 - Updated - 2.91K stars
postcss-normalize-string
Normalize wrapping quotes for CSS string literals.
Latest release 4.0.2 - Updated - 2.91K stars
postcss-normalize-repeat-style
Convert two value syntax for repeat-style into one value.
Latest release 4.0.2 - Updated - 2.91K stars
cssnano-util-raw-cache
Manages the raw value formatting for generated AST nodes.
Latest release 4.0.1 - Updated - 2.91K stars
postcss-normalize-display-values
Normalize multiple value display syntaxes into single values.
Latest release 4.0.2 - Updated - 2.91K stars
cssnano-util-same-parent
Check that two PostCSS nodes share the same parent.
Latest release 4.0.1 - Updated - 2.91K stars
cssnano-preset-default
Safe defaults for cssnano which require minimal configuration.
Latest release 4.0.7 - Updated - 2.91K stars
cssnano-preset-advanced
Advanced optimisations for cssnano; may or may not break your CSS!
Latest release 4.0.7 - Updated - 2.91K stars
org.webjars.npm:cssnano-util-get-match
WebJar for cssnano-util-get-match
Latest release 4.0.0-rc.2 - Published - 2.91K stars
postcss-discard-comments
Discard comments in your CSS files with PostCSS.
Latest release 4.0.2 - Updated - 2.91K stars
postcss-minify-gradients
Minify gradient parameters with PostCSS.
Latest release 4.0.2 - Updated - 2.91K stars
postcss-normalize-unicode
Normalize unicode-range descriptors, and can convert to wildcard ranges.
Latest release 4.0.1 - Updated - 2.91K stars
postcss-reduce-initial
Reduce initial definitions to the actual initial value, where possible.
Latest release 4.0.3 - Updated - 2.91K stars
postcss-colormin
Minify colors in your CSS files with PostCSS.
Latest release 4.0.3 - Updated - 2.91K stars

Recent Tags See all

v4.1.10 February 14, 2019
v4.1.9 February 12, 2019
v4.1.8 December 22, 2018
v4.1.7 October 22, 2018
v4.1.6 October 22, 2018
v4.1.5 October 17, 2018
v4.1.4 September 27, 2018
v4.1.4 September 27, 2018
v4.1.3 September 25, 2018
v4.1.2 September 25, 2018
4.1.1 September 24, 2018
v4.1.1 September 24, 2018
4.1.0 August 24, 2018
4.0.5 July 30, 2018
4.0.4 July 25, 2018

Something wrong with this page? Make a suggestion

Login to resync this repository