-
Notifications
You must be signed in to change notification settings - Fork 435
/
svgoConfig.yml
60 lines (57 loc) · 1.59 KB
/
svgoConfig.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Lilith's Throne SVGO configuration
#
# To use SVGO, Node.js (https://nodejs.org/en/) is required.
# It can then be installed using "npm install -g svgo" from the command line.
#
# Usage follows with "svgo --config=svgoConfig.yml target.svg", where absolute
# paths may be required if the config file or the target file are not located
# in the current working directory. The target may also be a directory.
# Replace entire default configuration
full: true
# No plugins disabled by default
plugins:
- removeDoctype
- removeXMLProcInst
- removeComments
- removeMetadata
- removeEditorsNSData
- cleanupAttrs
- inlineStyles
- minifyStyles
- convertStyleToAttrs
# Preserve gradient IDs by disabling minification
- cleanupIDs:
minify: false
preserve: [patternLayer]
- removeRasterImages
- removeUselessDefs
- cleanupNumericValues
- cleanupListOfValues
# Prevent converting colors to names for color replacement
- convertColors:
shortname: false
- removeUnknownsAndDefaults
- removeNonInheritableGroupAttrs
- removeUselessStrokeAndFill
- removeViewBox
- cleanupEnableBackground
- removeHiddenElems
- removeEmptyText
- convertShapeToPath
- moveElemsAttrsToGroup
- moveGroupAttrsToElems
# Prevent pattern layer group collapse (enable for non-pattern items)
- collapseGroups: false
- convertPathData
- convertTransform
- removeEmptyAttrs
- removeEmptyContainers
- mergePaths
- removeUnusedNS
# Sort attributes for readability
- sortAttrs: true
- removeTitle
- removeDesc
# Use indented markup for readability
js2svg:
pretty: true