.svgo.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. - moveElemsAttrsToGroup
  41. - moveGroupAttrsToElems
  42. - collapseGroups
  43. - convertPathData
  44. - convertTransform
  45. - removeEmptyAttrs
  46. - removeEmptyContainers
  47. - mergePaths
  48. - removeUnusedNS
  49. - sortAttrs
  50. - removeTitle
  51. - removeDesc
  52. - removeDimensions
  53. - removeAttrs
  54. - removeAttributesBySelector
  55. - removeElementsByAttr
  56. - addClassesToSVGElement
  57. - removeStyleElement
  58. - removeScriptElement
  59. - addAttributesToSVGElement
  60. - removeOffCanvasPaths
  61. - reusePaths
  62. # configure the indent (default 4 spaces) used by `--pretty` here:
  63. #
  64. # @see https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options
  65. #
  66. # js2svg:
  67. # pretty: true
  68. # indent: ' '