forked from theGC/html-webpack-inline-svg-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
svgo-config.js
43 lines (42 loc) · 1.24 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
/**
* export default set of config options for SVGO
* values are overridden by setting the svgoConfig param on html-webpack-plugin config
*
*/
module.exports = {
cleanupIDs: false, // important when working with inline SVGs, id's allow us to reference the individual symbols
cleanupAttrs: true,
removeDoctype: true,
removeXMLProcInst: true,
removeComments: true,
removeMetadata: true,
removeTitle: true,
removeDesc: true,
removeUselessDefs: true,
removeEditorsNSData: true,
removeEmptyAttrs: true,
removeHiddenElems: true,
removeEmptyText: true,
removeEmptyContainers: true,
removeViewBox: false,
cleanUpEnableBackground: true,
convertStyleToAttrs: true,
convertColors: true,
convertPathData: true,
convertTransform: true,
removeUnknownsAndDefaults: true,
removeNonInheritableGroupAttrs: true,
removeUselessStrokeAndFill: true,
removeUnusedNS: true,
cleanupNumericValues: true,
moveElemsAttrsToGroup: true,
moveGroupAttrsToElems: true,
collapseGroups: true,
removeRasterImages: false,
mergePaths: true,
convertShapeToPath: true,
sortAttrs: true,
transformsWithOnePath: false,
removeDimensions: true,
removeAttrs: false,
}