julianrubisch / bridgetown-media-transformation

MIT License
6 stars 1 forks source link

Don't rebuild in development #5

Closed julianrubisch closed 3 years ago

julianrubisch commented 3 years ago

currently everything is done in a post_write hook, which works great, but also means that every time I change a running site, every image is re-transformed 💤

jaredcwhite commented 3 years ago

Could you save a cache file with fingerprint/hashes of the source images, so it'll skip over any image file that hasn't changed? But then it'd also have to make sure the transformed images in output aren't deleted either. Hmm.

julianrubisch commented 3 years ago

Yeah exactly. I thought about maybe storing (and retrieving) them to/from a different location outside output

julianrubisch commented 3 years ago

Alternatively just bypass in development, but then again you want to test your responsive images...

julianrubisch commented 3 years ago

Fixed by moving to _bridgetown, for now, thanks @andrewmcodes