4 ms·
A bit of a side-question for those using static site generators: how do you manage binary assets like images? I keep my Markdown, configuration files, etc. in
by cbm-vic-20 6y ago
A bit of a side-question for those using static site generators: how do you manage binary assets like images? I keep my Markdown, configuration files, etc. in git, but I don't want to put binary blobs into git. git-LFS seems to be an option, but it doesn't look like there's much support for self-hosting. For now, I'm rsyncing assets to the right place as part of the generation process, but There's Got To Be A Better Way.
- stevekemp 6y agoWhile git isn't ideal for binary assets it is also true that adding random 10Gb images is bad for readers on bad network-links. I just make sure that my images, and assets, aren't "too big" and add them to git. If they were >1Gb then I might reconsider, but the git-repository which contains my blog goes back to 1st January 2005 and is only ~50Mb in size so it hasn't been a real concern.
- efficax 6y agoWhy not put them in git? Works just fine
- tpxl 6y agoGit is not exactly well suited to having large blobs. If you change a single bit and git doesn't know how to diff it, you'll get a whole new version of the file, balooning repo size.