Answer the question
In order to leave comments, you need to log in
How to use LuaSrcDiet and automate usage for multiple files?
There is a LuaSrcDiet utility ( luaforge.net/projects/luasrcdiet ). Briefly, it removes comments, whitespace, and other code size optimizations for Lua scripts.
But I have a lot of scripts. I don't want to write files manually for each one:
lua LuaSrcDiet.lua myscript.lua -o myscript_.lua
What tools does Windows have to automate this process? How it's done? Thank you.
Answer the question
In order to leave comments, you need to log in
maybe it's worth writing a script (on the same lua) that will run on a thread on a file?
Either write a script using the LuaFileSystem extension, or install cygwin and make a for loop on the bash.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question