Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: optional gifsicle dependency #113

Open
mistercoffee66 opened this issue May 29, 2020 · 1 comment
Open

Feature request: optional gifsicle dependency #113

mistercoffee66 opened this issue May 29, 2020 · 1 comment

Comments

@mistercoffee66
Copy link

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 imagemin/imagemin-gifsicle#37 (comment)

@phiresky
Copy link

phiresky commented Jul 17, 2020

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")

imagemin/gifsicle-bin#116 would be my preferred solution though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants