package.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "name": "postcss-minify-gradients",
  3. "version": "5.0.4",
  4. "description": "Minify gradient parameters with PostCSS.",
  5. "main": "dist/index.js",
  6. "files": [
  7. "LICENSE-MIT",
  8. "dist"
  9. ],
  10. "keywords": [
  11. "css",
  12. "postcss",
  13. "postcss-plugin"
  14. ],
  15. "license": "MIT",
  16. "homepage": "https://github.com/cssnano/cssnano",
  17. "author": {
  18. "name": "Ben Briggs",
  19. "email": "beneb.info@gmail.com",
  20. "url": "http://beneb.info"
  21. },
  22. "repository": "cssnano/cssnano",
  23. "dependencies": {
  24. "colord": "^2.9.1",
  25. "cssnano-utils": "^3.0.0",
  26. "postcss-value-parser": "^4.2.0"
  27. },
  28. "bugs": {
  29. "url": "https://github.com/cssnano/cssnano/issues"
  30. },
  31. "engines": {
  32. "node": "^10 || ^12 || >=14.0"
  33. },
  34. "devDependencies": {
  35. "postcss": "^8.2.15"
  36. },
  37. "peerDependencies": {
  38. "postcss": "^8.2.15"
  39. },
  40. "scripts": {
  41. "prebuild": "rimraf dist",
  42. "build": "babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\""
  43. },
  44. "readme": "# [postcss][postcss]-minify-gradients\n\n> Minify gradient parameters with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-minify-gradients) do:\n\n```\nnpm install postcss-minify-gradients\n```\n\n\n## Example\n\nWhere possible, this module will minify gradient parameters. It can convert\nlinear gradient directional syntax to angles, remove the unnecessary `0%` and\n`100%` start and end values, and minimise color stops that use the same length\nvalues (the browser will adjust the value automatically).\n\n### Input\n\n```css\nh1 {\n background: linear-gradient(to bottom, #ffe500 0%, #ffe500 50%, #121 50%, #121 100%)\n}\n```\n\n### Output\n\n```css\nh1 {\n background: linear-gradient(180deg, #ffe500, #ffe500 50%, #121 0, #121)\n}\n```\n\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[postcss]: https://github.com/postcss/postcss\n"
  45. }