imagemin-webpack-plugin icon indicating copy to clipboard operation
imagemin-webpack-plugin copied to clipboard

Feature request: optional gifsicle dependency

Open mistercoffee66 opened this issue 5 years ago • 1 comments

Requesting that gifsicle be a separate install for those who want to use it. This may be an edge case, but some npm installs will fail due to gifsicle without additional steps.

Please see https://github.com/imagemin/imagemin-gifsicle/issues/37#issuecomment-577889854

mistercoffee66 avatar May 29 '20 23:05 mistercoffee66

As a workaround, doing this:

	new ImageminPlugin({
		...
		gifsicle: null
	}),

with package.json:

	"resolutions": {
		"gifsicle": "https://registry.yarnpkg.com/@favware/skip-dependency/-/skip-dependency-1.0.2.tgz"
	}

works

(or alternatively create a dir with an empty index.js file and do resolutions: gifsicle: "file:./path/to/empty")

https://github.com/imagemin/gifsicle-bin/issues/116 would be my preferred solution though

phiresky avatar Jul 17 '20 12:07 phiresky