cc-haxe/tools/minify.js

9 lines
199 B
JavaScript
Raw Permalink Normal View History

2024-04-16 09:05:28 +00:00
const fs = require("fs");
const luamin = require("luamin");
const haxeOutput = fs.readFileSync(0, { encoding: "utf8" });
const minified = luamin.minify(haxeOutput);
fs.writeFileSync(1, minified);