11 lines
301 B
JavaScript
11 lines
301 B
JavaScript
const fs = require("fs");
|
|
const luamin = require("luamin");
|
|
|
|
const haxeOutput = fs.readFileSync(process.argv[2] ?? "build/Haxe.min.lua",{encoding:"utf8"});
|
|
|
|
const minified = luamin.minify(haxeOutput);
|
|
|
|
fs.writeFileSync(process.argv[3] ?? "build/Haxe.min.lua",minified);
|
|
|
|
console.log("minified lua");
|