imagemin / imagemin-svgo

SVGO plugin for imagemin
MIT License
125 stars 28 forks source link

Use svgo as peerDependency #47

Closed strarsis closed 3 years ago

strarsis commented 3 years ago

IT would be much better if this imagemin plugin could use svgo as a peerDependency. Currently it uses svgo as a dependency, which prevents overriding it with a package of different version. This will also fix https://github.com/imagemin/imagemin-svgo/issues/41.

Until svgo is used as a peerDependency, some other mechanism has to be used to force a specific svgo version: https://stackoverflow.com/questions/15806152/how-do-i-override-nested-npm-dependency-versions

strarsis commented 3 years ago

This is caused by an issue with https://github.com/sindresorhus/gulp-imagemin.