2021-12-20 00:55:30 +00:00
|
|
|
const fs = require("fs");
|
|
|
|
const luamin = require("luamin");
|
|
|
|
|
2022-02-20 19:29:04 +00:00
|
|
|
const haxeOutput = fs.readFileSync(process.argv[2] ?? "build/Haxe.min.lua",{encoding:"utf8"});
|
2021-12-20 00:55:30 +00:00
|
|
|
|
|
|
|
const minified = luamin.minify(haxeOutput);
|
|
|
|
|
2022-02-20 19:29:04 +00:00
|
|
|
fs.writeFileSync(process.argv[3] ?? "build/Haxe.min.lua",minified);
|
2021-12-20 00:55:30 +00:00
|
|
|
|
|
|
|
console.log("minified lua");
|