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 when using streams #13
Comments
We do have the source and dest buffer though. So could compare that. I'm just not sure caching should be a part of image-min. |
Yeah, but how do we know where to look? And we'd still have to optimize the image before comparing it to the dest buffer which kinda makes the caching redundant. |
@kevva disk, sad lol... i really wish ramdisks were a standard OS feature, would make this so much easier. |
Closing this as caching probably should be done somewhere else, preferably in grunt-contrib-imagemin or gulp-imagemin. |
I agree, but keeping it open here so I don't forget. We should also have an example on how to cache in the readme when we figure it out. |
When using streams we have no information about the src or dest file and therefore can't check whether the optimized file exists in cache or not using https://github.com/kevva/cache-file.
https://npmjs.org/search?q=cache+stream
The text was updated successfully, but these errors were encountered: