cc-haxe/minify.js

11 lines
278 B
JavaScript
Raw Normal View History

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