Skip to content
A modular minifier, built on top of the PostCSS ecosystem.
CSS JavaScript
Branch: master
Clone or download

Latest commit

Latest commit 8dd5c44 Apr 9, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github chore: update issue template Apr 9, 2020
frameworks test: update integration (#709) Feb 1, 2019
media Add logo. Jun 26, 2015
packages fix: Keep math functions together (#895) Apr 1, 2020
site feat: css declaration sorter (#855) Feb 20, 2020
util chore: migrate on jest (#800) Jun 24, 2019
.all-contributorsrc Add genemecija to contributors. Apr 6, 2020
.editorconfig chore: integrate prettier (#738) Apr 29, 2019
.eslintrc.js chore: migrate on jest (#800) Jun 24, 2019
.gitattributes ci: migrate on azure-pipelines (#763) May 8, 2019
.gitignore chore: migrate on latest babel and ava (#772) May 24, 2019
.prettierrc.js chore: integrate prettier (#738) Apr 29, 2019
.remarkrc.js chore: integrate prettier (#738) Apr 29, 2019
CONTRIBUTING.md docs: replace `ben-eb`to `cssnano` (#521) Jun 19, 2018
CONTRIBUTORS.md Add genemecija to contributors. Apr 6, 2020
LICENSE-MIT Add MIT license. May 2, 2015
README.md chore: added opencollective in the readme.md (#877) Feb 13, 2020
azure-pipelines.yml chore: dropped node v6 and v8 (#841) Nov 13, 2019
babel.config.js chore: cssnano-util-* packages ---> cssnano-utils (#868) Feb 12, 2020
jest.config.js fix: units being removed in math functions (#894) Apr 1, 2020
lerna.json chore: migrate on latest babel and ava (#772) May 24, 2019
package.json chore: update browserslist & @babel/* packages versions (#873) Jan 30, 2020
yarn.lock chore: updated dep and auditing fixes (#891) Mar 18, 2020

README.md


cssnano


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

Backers on Open Collective Sponsors on Open Collective NPM version Build Status codecov 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!

Contributing

See CONTRIBUTING.md.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

MIT © Ben Briggs

You can’t perform that action at this time.