Hey guys,
I have one other question, has anyone made a way an API (in lua) where I can give it a file and it will minify it, so removing extra whitespace, linebreaks and removing comments?
Thanks,
Danny
2
6 replies to this topic
#1
Posted 25 May 2016 - 03:49 PM
#2
Posted 25 May 2016 - 04:14 PM
Howl comes with a minifier. You can always look at extracting out the minifier into a separate program (modify this line to be "howl/lexer/*" instead) then build it. Alternatively you can always use Howl .
Edited by SquidDev, 25 May 2016 - 04:14 PM.
#3
Posted 25 May 2016 - 04:33 PM
SquidDev, on 25 May 2016 - 04:14 PM, said:
Howl comes with a minifier. You can always look at extracting out the minifier into a separate program (modify this line to be "howl/lexer/*" instead) then build it. Alternatively you can always use Howl />.
Thanks for that!! How would I use it?
#6
Posted 25 May 2016 - 04:56 PM
DannySMc, on 25 May 2016 - 04:33 PM, said:
Thanks for that!! How would I use it?
There is a pastebin of it (I made this for someone a while back and it isn't 100% up to date). If you load it with os.loadAPI then use <api>.Rebuild.minifyFile(in, out) or <api>.Rebuild.MinifyString(in).
#7
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users