51743e263491e511329559ad44a6e17ceafe72cab512f5920580c81cc1ddf3614284385e7617c35340649d0d6c3525e69e20a7e4ac9ebf2125a594095bcff7 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <h1 align="center">
  2. <br>
  3. <img width="360" src="https://rawgit.com/ben-eb/cssnano/master/media/logo.svg" alt="cssnano">
  4. <br>
  5. <br>
  6. <br>
  7. </h1>
  8. > A modular minifier, built on top of the [PostCSS] ecosystem.
  9. [![Build Status](https://travis-ci.org/ben-eb/cssnano.svg?branch=master)][ci] [![Build status](https://ci.appveyor.com/api/projects/status/t1chyvhobtju7jy8/branch/master?svg=true)](https://ci.appveyor.com/project/ben-eb/cssnano/branch/master) [![Coverage Status](https://coveralls.io/repos/github/ben-eb/cssnano/badge.svg?branch=master)](https://coveralls.io/github/ben-eb/cssnano?branch=master) [![NPM version](https://badge.fury.io/js/cssnano.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/cssnano.svg)][deps] [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/ben-eb/cssnano?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
  10. cssnano is a modular minifier that aims to utilise small modules from the
  11. PostCSS ecosystem, rather than being an all-encompassing module that may be
  12. difficult to contribute to. Because it is written on top of PostCSS, it is able
  13. to do more than simple whitespace transforms - including advanced optimisations
  14. such as custom identifier reduction, `z-index` rebasing, and adjacent selector
  15. merging.
  16. Note that cssnano enables aggressive optimisations by default, which might not
  17. always be what you want. Set `options.safe` to `true` if you want to disable
  18. this. In future versions, only safe options will be enabled by default, starting
  19. from [version 4][v4].
  20. For further details check out the [website](http://cssnano.co/):
  21. * [Installation guide for your build process](http://cssnano.co/usage/).
  22. * [Full list of optimisations](http://cssnano.co/optimisations/).
  23. * [Customise the output (options documentation)](http://cssnano.co/options/).
  24. You can now [try cssnano online](https://runkit.com/npm/cssnano) via Runkit!
  25. ## Contributing
  26. See [CONTRIBUTING.md](CONTRIBUTING.md).
  27. ## Links
  28. Please help to support this project by [purchasing a cssnano sticker][sticker].
  29. [sticker]: https://www.stickermule.com/uk/marketplace/11086-cssnano
  30. ## License
  31. MIT © [Ben Briggs](http://beneb.info)
  32. [PostCSS]: https://github.com/postcss/postcss
  33. [ci]: https://travis-ci.org/ben-eb/cssnano
  34. [deps]: https://gemnasium.com/ben-eb/cssnano
  35. [npm]: http://badge.fury.io/js/cssnano
  36. [v4]: https://github.com/ben-eb/cssnano/issues/88