package.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "name": "postcss-merge-rules",
  3. "version": "5.0.4",
  4. "description": "Merge CSS rules with PostCSS.",
  5. "main": "dist/index.js",
  6. "files": [
  7. "LICENSE-MIT",
  8. "dist"
  9. ],
  10. "keywords": [
  11. "css",
  12. "optimise",
  13. "postcss",
  14. "postcss-plugin"
  15. ],
  16. "license": "MIT",
  17. "homepage": "https://github.com/cssnano/cssnano",
  18. "author": {
  19. "name": "Ben Briggs",
  20. "email": "beneb.info@gmail.com",
  21. "url": "http://beneb.info"
  22. },
  23. "repository": "cssnano/cssnano",
  24. "dependencies": {
  25. "browserslist": "^4.16.6",
  26. "caniuse-api": "^3.0.0",
  27. "cssnano-utils": "^3.0.0",
  28. "postcss-selector-parser": "^6.0.5"
  29. },
  30. "bugs": {
  31. "url": "https://github.com/cssnano/cssnano/issues"
  32. },
  33. "engines": {
  34. "node": "^10 || ^12 || >=14.0"
  35. },
  36. "devDependencies": {
  37. "postcss": "^8.2.15",
  38. "postcss-discard-comments": "^5.0.1"
  39. },
  40. "peerDependencies": {
  41. "postcss": "^8.2.15"
  42. },
  43. "scripts": {
  44. "prebuild": "rimraf dist",
  45. "build": "babel src --config-file ../../babel.config.json --out-dir dist --ignore \"**/__tests__/\""
  46. },
  47. "readme": "# [postcss][postcss]-merge-rules\n\n> Merge CSS rules with PostCSS.\n\n## Install\n\nWith [npm](https://npmjs.org/package/postcss-merge-rules) do:\n\n```\nnpm install postcss-merge-rules --save\n```\n\n## Examples\n\nThis module will attempt to merge *adjacent* CSS rules:\n\n### By declarations\n\n#### Input\n\n```css\na {\n color: blue;\n font-weight: bold\n}\n\np {\n color: blue;\n font-weight: bold\n}\n```\n\n#### Output\n\n```css\na,p {\n color: blue;\n font-weight: bold\n}\n```\n\n### By selectors\n\n#### Input\n\n```css\na {\n color: blue\n}\n\na {\n font-weight: bold\n}\n```\n\n#### Output\n\n```css\na {\n color: blue;\n font-weight: bold\n}\n```\n\n### By partial declarations\n\n#### Input\n\n```css\na {\n font-weight: bold\n}\n\np {\n color: blue;\n font-weight: bold\n}\n```\n\n#### Output\n\n```css\na,p {\n font-weight: bold\n}\n\np {\n color: blue\n}\n```\n\n## Usage\n\nSee the [PostCSS documentation](https://github.com/postcss/postcss#usage) for\nexamples for your environment.\n\n## Contributors\n\nSee [CONTRIBUTORS.md](https://github.com/cssnano/cssnano/blob/master/CONTRIBUTORS.md).\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[postcss]: https://github.com/postcss/postcss\n"
  48. }