cc-haxe/tools/minify.js

9 lines
199 B
JavaScript

const fs = require("fs");
const luamin = require("luamin");
const haxeOutput = fs.readFileSync(0, { encoding: "utf8" });
const minified = luamin.minify(haxeOutput);
fs.writeFileSync(1, minified);