Skip to content

Commit

Permalink
fix(gulp): svgo のオプションを更新する
Browse files Browse the repository at this point in the history
  • Loading branch information
chalkygames123 committed Mar 14, 2023
1 parent 4ed1723 commit ad1cb63
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions gulpfile/tasks/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,21 @@ export const images = () => {
optimizationLevel: 3,
}),
svgo({
multipass: true,
plugins: [
{ cleanupIDs: false },
{ removeUnknownsAndDefaults: false },
{ removeUselessDefs: false },
{ removeViewBox: false },
{
name: 'preset-default',
params: {
overrides: {
removeUnknownsAndDefaults: {
keepDataAttrs: false,
},
removeViewBox: false,
},
},
},
'convertStyleToAttrs',
'reusePaths',
],
}),
]),
Expand Down

0 comments on commit ad1cb63

Please sign in to comment.