d5b7687ef35e0a4694f071e0f68f476996c6446d413f8b5ac9ec77796a0f79540c8e2cc1c2b3c8039b9cd838d4d0e2bc9edeff6fc77af344f55c968fe0538a 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # [postcss][postcss]-reduce-transforms [![Build Status](https://travis-ci.org/ben-eb/postcss-reduce-transforms.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-reduce-transforms.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/postcss-reduce-transforms.svg)][deps]
  2. > Reduce transform functions with PostCSS.
  3. ## Install
  4. With [npm](https://npmjs.org/package/postcss-reduce-transforms) do:
  5. ```
  6. npm install postcss-reduce-transforms --save
  7. ```
  8. ## Example
  9. This module will reduce transform functions where possible. For more examples,
  10. see the [tests](src/__tests__/index.js).
  11. ### Input
  12. ```css
  13. h1 {
  14. transform: rotate3d(0, 0, 1, 20deg);
  15. }
  16. ```
  17. ### Output
  18. ```css
  19. h1 {
  20. transform: rotate(20deg);
  21. }
  22. ```
  23. ## Usage
  24. See the [PostCSS documentation](https://github.com/postcss/postcss#usage) for
  25. examples for your environment.
  26. ## Contributing
  27. Pull requests are welcome. If you add functionality, then please add unit tests
  28. to cover it.
  29. ## License
  30. MIT © [Ben Briggs](http://beneb.info)
  31. [ci]: https://travis-ci.org/ben-eb/postcss-reduce-transforms
  32. [deps]: https://gemnasium.com/ben-eb/postcss-reduce-transforms
  33. [npm]: http://badge.fury.io/js/postcss-reduce-transforms
  34. [postcss]: https://github.com/postcss/postcss