Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

How to disable WebP ? Seems a bug from v7.0.0 #263

Closed
VincentClair opened this issue Sep 17, 2020 · 5 comments
Closed

How to disable WebP ? Seems a bug from v7.0.0 #263

VincentClair opened this issue Sep 17, 2020 · 5 comments

Comments

@VincentClair
Copy link

VincentClair commented Sep 17, 2020

I've got the following error when building package on serverless :

ERROR in ./app/assets/images/favicon.png
Module build failed (from ./node_modules/image-webpack-loader/index.js):
Error: spawn /builds/webapp/node_modules/cwebp-bin/vendor/cwebp ENOENT

It seems that, what any option i set or not set to webp config, webp is activated:

Maybe it comes from options init at

webp: config.webp || {}

Then when initializing plugins, the condition is true, at

if(options.webp)
:

Any idea to resolve it ?

@VincentClair
Copy link
Author

Seems related to 909bcf6

@VincentClair VincentClair changed the title How to disable WebP ? How to disable WebP ? Seems a bug from v7.0.0 Sep 17, 2020
@tcoopman
Copy link
Owner

Have you tried setting config.webp to false?

@VincentClair
Copy link
Author

VincentClair commented Sep 17, 2020

Yes, and with line 42, it initiliaze webp option to {}

@tcoopman
Copy link
Owner

Ah yes, I see. That's an issue indeed

@tcoopman
Copy link
Owner

removing webp from the config or setting webp.enabled = false should work again.

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

No branches or pull requests

2 participants