I have a bunch of html files I upload as a filesystem image using littlefs.
Is there any way I can store the files as html in my git repo but have them zipped up as gz files when I build the filesystem image?
OK I found the answer. I came across PlatformIO, SPIFFS & GZIP – Spanner and Code which is spiffs but this lead me to Script for LittleFS Upload - #4 by aldope which was just changing
env.AddPreAction("$BUILD_DIR/spiffs.bin", copy_gzip_data)
to
env.AddPreAction("$BUILD_DIR/littlefs.bin", copy_gzip_data)