11 lines
259 B
JavaScript
11 lines
259 B
JavaScript
const fs = require("fs");
|
|
const luamin = require("luamin");
|
|
|
|
const haxeOutput = fs.readFileSync("build/Haxe.lua",{encoding:"utf8"});
|
|
|
|
const minified = luamin.minify(haxeOutput);
|
|
|
|
fs.writeFileSync("build/Haxe.min.lua",minified);
|
|
|
|
console.log("minified lua");
|