项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # [postcss][postcss]-minify-selectors [![Build Status](https://travis-ci.org/ben-eb/postcss-minify-selectors.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-minify-selectors.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-minify-selectors.svg)][deps]
  2. > Minify selectors with PostCSS.
  3. ## Install
  4. With [npm](https://www.npmjs.com/package/postcss-minify-selectors) do:
  5. ```
  6. npm install postcss-minify-selectors --save
  7. ```
  8. ## Example
  9. ### Input
  10. ```css
  11. h1 + p, h2, h3, h2{color:blue}
  12. ```
  13. ### Output
  14. ```css
  15. h1+p,h2,h3{color:blue}
  16. ```
  17. For more examples see the [tests](test.js).
  18. ## Usage
  19. See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
  20. examples for your environment.
  21. ## Contributing
  22. Pull requests are welcome. If you add functionality, then please add unit tests
  23. to cover it.
  24. ## License
  25. MIT © [Ben Briggs](http://beneb.info)
  26. [ci]: https://travis-ci.org/ben-eb/postcss-minify-selectors
  27. [deps]: https://gemnasium.com/ben-eb/postcss-minify-selectors
  28. [npm]: http://badge.fury.io/js/postcss-minify-selectors
  29. [postcss]: https://github.com/postcss/postcss