Skip to content

Commit

Permalink
Fix SVGO config
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPropre committed Apr 20, 2021
1 parent 6ef352b commit 915949a
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 915949a

Please sign in to comment.