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

Cache previously force-generated images? #19

Open
simonhrogers opened this issue Feb 11, 2019 · 0 comments
Open

Cache previously force-generated images? #19

simonhrogers opened this issue Feb 11, 2019 · 0 comments

Comments

@simonhrogers
Copy link

Hey Barry,

Currently with each new npm run generate, all images are generated again – I am wondering if it would be possible for this module to only write new images that don’t already exist in the dist?

I understand this might require altered images to be renamed / deleted manually but would save significantly on build times as otherwise it can take 10 mins or so to run through all the assets.

I am now resizing 90 images in 9 sizes each time – which causes my computer to crash (I will impose limits on Image Magick’s CPU usage in the meantime and see if this solves the crashing, but it would be helpful to have caching also!)

All Best,

Simon

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