.svgo.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. - minifyStyles
  23. - convertStyleToAttrs
  24. - cleanupIDs
  25. - removeRasterImages
  26. - removeUselessDefs
  27. - cleanupNumericValues
  28. - cleanupListOfValues
  29. - convertColors
  30. - removeUnknownsAndDefaults
  31. - removeNonInheritableGroupAttrs
  32. - removeUselessStrokeAndFill
  33. - removeViewBox
  34. - cleanupEnableBackground
  35. - removeHiddenElems
  36. - removeEmptyText
  37. - convertShapeToPath
  38. - moveElemsAttrsToGroup
  39. - moveGroupAttrsToElems
  40. - collapseGroups
  41. - convertPathData
  42. - convertTransform
  43. - removeEmptyAttrs
  44. - removeEmptyContainers
  45. - mergePaths
  46. - removeUnusedNS
  47. - transformsWithOnePath
  48. - sortAttrs
  49. - removeTitle
  50. - removeDesc
  51. - removeDimensions
  52. - removeAttrs
  53. - removeElementsByAttr
  54. - addClassesToSVGElement
  55. - removeStyleElement
  56. - addAttributesToSVGElement
  57. # configure the indent (default 4 spaces) used by `--pretty` here:
  58. #
  59. # @see https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options
  60. #
  61. # js2svg:
  62. # pretty: true
  63. # indent: ' '