Skip to content

Commit 5bd5786

Browse files
committedSep 10, 2021
Upgrade to svgo 2.5 and add preset-default example
1 parent 15c1845 commit 5bd5786

File tree

3 files changed

+100
-211
lines changed

3 files changed

+100
-211
lines changed
 
+13-15
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
1-
const { extendDefaultPlugins } = require('svgo');
21
module.exports = {
3-
plugins: extendDefaultPlugins([
2+
plugins: [
43
{
5-
name: 'removeTitle',
6-
active: false
7-
},
8-
{
9-
name: 'convertPathData',
10-
active: false
11-
},
12-
{
13-
name: 'convertColors',
4+
name: "preset-default",
145
params: {
15-
shorthex: false
16-
}
17-
}
18-
])
6+
overrides: {
7+
removeTitle: false,
8+
convertPathData: false,
9+
convertColors: {
10+
shorthex: false,
11+
},
12+
},
13+
},
14+
},
15+
"prefixIds",
16+
],
1917
};

‎package-lock.json

+86-195
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
},
2828
"dependencies": {
2929
"loader-utils": "^1.0.3",
30-
"svgo": "^2.2.0"
30+
"svgo": "^2.5.0"
3131
}
3232
}

0 commit comments

Comments
 (0)
Please sign in to comment.