cc-mek-scada
cc-mek-scada copied to clipboard
"Safe" Lua Minifier
Minifying "safety-critical" code isn't my favorite idea, but if done correctly would save a lot of space on the default 1MB computers.
- Remove all comments (defined as starting with -- and ending with end of line)
- Remove all trailing whitespace, likely caused by removing comments
- Remove all white space between line start and first non-whitespace character
This should save a significant amount of space, but maybe should have a better name that minifier since it's just dropping comments and whitespace.
This would then need to be part of the deployment, where installers now pull from there instead of directly from the repository. "There" being the same place where it already pulls the install manifest.