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

pngquant options.quality error #72

Open
tuticapi opened this issue Jun 11, 2020 · 0 comments
Open

pngquant options.quality error #72

tuticapi opened this issue Jun 11, 2020 · 0 comments

Comments

@tuticapi
Copy link

When the command bin/build-mysite is run
It shows the error:

  • Module build failed: ArgumentError: Expected options.quality to be of type array but received type string
    image

The solution that I have used is:

Change in the config.js file the value of pngquant.quality to array
like this:

new code

 pngquant: {
   quality: [0.65, 0.90]
   },

old code

pngquant: {
    quality: "65-90",
 },
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

1 participant