-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
svgo.config.js
executable file
·67 lines (67 loc) · 1.32 KB
/
svgo.config.js
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
61
62
63
64
65
66
67
// svgo.config.js
module.exports = {
multipass: true,
datauri: "enc",
js2svg: {
pretty: true,
},
plugins: [
"cleanupAttrs",
"cleanupEnableBackground",
"cleanupIDs",
"cleanupListOfValues",
"cleanupNumericValues",
"collapseGroups",
"convertColors",
{
name: "convertPathData",
params: {
noSpaceAfterFlags: false,
},
},
{ convertShapeToPath: false },
"convertStyleToAttrs",
"convertTransform",
"inlineStyles",
{
name: "mergePaths",
params: {
noSpaceAfterFlags: false,
},
},
"minifyStyles",
"moveElemsAttrsToGroup",
"moveGroupAttrsToElems",
{
name: "removeAttrs",
attrs: {
"data-name": "",
"clip-rule": "",
},
},
"removeComments",
"removeDesc",
"removeDoctype",
"removeEditorsNSData",
"removeEmptyAttrs",
"removeEmptyContainers",
"removeEmptyText",
"removeHiddenElems",
"removeMetadata",
"removeNonInheritableGroupAttrs",
"removeTitle",
{
name: "removeUnknownsAndDefaults",
params: {
keepRoleAttr: true,
},
},
"removeUnusedNS",
"removeUselessDefs",
"removeUselessStrokeAndFill",
"removeXMLProcInst",
"sortAttrs",
{ removeViewBox: false },
{ removeXMLNS: false },
],
};