|
1 | 1 | module.exports = { |
2 | 2 | plugins: [ |
3 | | - { cleanupAttrs: true }, |
4 | | - { removeDoctype: true }, |
5 | | - { removeXMLProcInst: true }, |
6 | | - { removeComments: true }, |
7 | | - { removeMetadata: true }, |
8 | | - { removeTitle: true }, |
9 | | - { removeDesc: true }, |
10 | | - { removeUselessDefs: true }, |
11 | | - { removeEditorsNSData: true }, |
12 | | - { removeEmptyAttrs: true }, |
13 | | - { removeHiddenElems: true }, |
14 | | - { removeEmptyText: true }, |
15 | | - { removeEmptyContainers: true }, |
16 | | - { cleanupEnableBackground: true }, |
17 | | - { convertStyleToAttrs: true }, |
18 | | - { convertColors: true }, |
19 | | - { convertPathData: true }, |
20 | | - { convertTransform: true }, |
21 | | - { removeUnknownsAndDefaults: true }, |
22 | | - { removeNonInheritableGroupAttrs: true }, |
23 | | - { removeUselessStrokeAndFill: true }, |
24 | | - { removeUnusedNS: true }, |
25 | | - { cleanupIDs: true }, |
26 | | - { cleanupNumericValues: true }, |
27 | | - { moveElemsAttrsToGroup: true }, |
28 | | - { moveGroupAttrsToElems: true }, |
29 | | - { collapseGroups: true }, |
30 | | - { removeRasterImages: false }, |
31 | | - { mergePaths: true }, |
32 | | - { convertShapeToPath: true }, |
33 | | - { sortAttrs: true }, |
34 | | - { removeDimensions: false }, |
35 | | - { prefixIds: true }, |
36 | | - { removeViewBox: false }, |
| 3 | + { |
| 4 | + name: 'preset-default', |
| 5 | + params: { |
| 6 | + overrides: { |
| 7 | + // Disable a plugin included by default that you don't want (false) |
| 8 | + removeViewBox: false, |
| 9 | + }, |
| 10 | + }, |
| 11 | + }, |
| 12 | + // Plugins that are not in the "preset-default" and that you want to activate |
| 13 | + 'removeTitle', |
| 14 | + 'convertStyleToAttrs', |
| 15 | + 'prefixIds', |
37 | 16 | ], |
38 | 17 | } |
0 commit comments