Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/MrPropre/image-optimizer
Browse files Browse the repository at this point in the history
…into pr/140
  • Loading branch information
MrPropre committed Apr 20, 2021
2 parents a2960fb + 3b556ff commit 4bd321a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/OptimizerChainFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function create(array $config = []): OptimizerChain
]))

->addOptimizer(new Svgo([
'--disable={cleanupIDs,removeViewBox}',
'--config=svgo.config.js',
]))

->addOptimizer(new Gifsicle([
Expand Down
14 changes: 14 additions & 0 deletions svgo.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const { extendDefaultPlugins } = require('svgo')

module.exports = {
plugins: extendDefaultPlugins([
{
name: 'cleanupIDs',
active: false
},
{
name: 'removeViewBox',
active: false
}
])
}

0 comments on commit 4bd321a

Please sign in to comment.