mirror of
https://github.com/MincoMK/create-computercraft.git
synced 2025-12-10 14:43:23 +00:00
init
This commit is contained in:
14
templates/executable/scripts/postbuild.js
Normal file
14
templates/executable/scripts/postbuild.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const luamin = require("luamin");
|
||||
const fs = require("fs");
|
||||
const Path = require("path");
|
||||
|
||||
const c = fs.readFileSync(
|
||||
Path.resolve(__dirname, "../dist/bundle.lua"),
|
||||
"utf8",
|
||||
);
|
||||
const min = luamin.minify(c);
|
||||
fs.writeFileSync(
|
||||
Path.resolve(__dirname, "../dist/bundle.min.lua"),
|
||||
min,
|
||||
"utf8",
|
||||
);
|
||||
Reference in New Issue
Block a user