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

How to avoid reoptimizing all images between builds? #152

Open
kwyoung11 opened this issue Apr 27, 2020 · 1 comment
Open

How to avoid reoptimizing all images between builds? #152

kwyoung11 opened this issue Apr 27, 2020 · 1 comment

Comments

@kwyoung11
Copy link

It seems that on each build, all images are re-optimized (not just new images) and this slows down the build. What's the best way to only build images that are not in the .next/static/images folder yet (i.e. new images)? Is there a recommended way to cache these files?

@naavis
Copy link

naavis commented Sep 13, 2020

I would like to know too. I'm building a very image-heavy website, and reprocessing images all the time slows down work significantly.

EDIT: After some testing I was able to pinpoint that using the lqip-loader for creating placeholder images causes most of the slowdown.

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