.svgo.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # replace default config
  2. # multipass: true
  3. # full: true
  4. plugins:
  5. # - name
  6. #
  7. # or:
  8. # - name: false
  9. # - name: true
  10. #
  11. # or:
  12. # - name:
  13. # param1: 1
  14. # param2: 2
  15. - removeDoctype
  16. - removeXMLProcInst
  17. - removeComments
  18. - removeMetadata
  19. - removeXMLNS
  20. - removeEditorsNSData
  21. - cleanupAttrs
  22. - inlineStyles
  23. - minifyStyles
  24. - convertStyleToAttrs
  25. - cleanupIDs
  26. - prefixIds
  27. - removeRasterImages
  28. - removeUselessDefs
  29. - cleanupNumericValues
  30. - cleanupListOfValues
  31. - convertColors
  32. - removeUnknownsAndDefaults
  33. - removeNonInheritableGroupAttrs
  34. - removeUselessStrokeAndFill
  35. - removeViewBox
  36. - cleanupEnableBackground
  37. - removeHiddenElems
  38. - removeEmptyText
  39. - convertShapeToPath
  40. - convertEllipseToCircle
  41. - moveElemsAttrsToGroup
  42. - moveGroupAttrsToElems
  43. - collapseGroups
  44. - convertPathData
  45. - convertTransform
  46. - removeEmptyAttrs
  47. - removeEmptyContainers
  48. - mergePaths
  49. - removeUnusedNS
  50. - sortAttrs
  51. - sortDefsChildren
  52. - removeTitle
  53. - removeDesc
  54. - removeDimensions
  55. - removeAttrs
  56. - removeAttributesBySelector
  57. - removeElementsByAttr
  58. - addClassesToSVGElement
  59. - removeStyleElement
  60. - removeScriptElement
  61. - addAttributesToSVGElement
  62. - removeOffCanvasPaths
  63. - reusePaths
  64. # configure the indent (default 4 spaces) used by `--pretty` here:
  65. #
  66. # @see https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options
  67. #
  68. # js2svg:
  69. # pretty: true
  70. # indent: ' '