arduino-esp8266fs-plugin
arduino-esp8266fs-plugin copied to clipboard
automatic gz files like css and js / or pre-create-hook
to save some space in the spiffs it would be nice if the plugin gz files like css OR define a pre-create-hook (bash script) to do thinks like that... it would be great if the script can change the data directory.
in my case i have 5 steps:
- copy all files from data to /tmp/data....
- stitch all css and js files in one css and js file
- gz the generated files
- remove all unused and stitched css and js files
- build the spiffs from /tmp/data..... and upload
+1 for a pre-create hook.
Where will this hook script will be located? In the same data directory?
Where will this hook script will be located? In the same data directory?
That would make it part of the spiffs creation- probably not so good. Could we e.g. put it one level higher into build_hooks or something and can that folder be excluded from arduino ide trying to compile it?