🔨 Add darklua for minify production script.

This commit is contained in:
2025-11-22 23:12:41 +01:00
parent 9114bafb8f
commit a435d5857c
3 changed files with 24 additions and 1 deletions

15
.darklua.json Normal file
View File

@@ -0,0 +1,15 @@
{
"generator": "dense",
"rules": [
"remove_comments",
"remove_spaces",
"compute_expression",
"convert_luau_number",
"group_local_assignment",
"remove_empty_do",
"remove_function_call_parens",
"remove_nil_declaration",
"remove_unused_if_branch",
"remove_unused_variable"
]
}

View File

@@ -6,7 +6,8 @@
"scripts": { "scripts": {
"build": "rbxtsc", "build": "rbxtsc",
"watch": "rbxtsc -w", "watch": "rbxtsc -w",
"lint": "eslint" "lint": "eslint",
"production": "darklua minify out out"
}, },
"keywords": [], "keywords": [],
"author": "Aconit team", "author": "Aconit team",

7
rokit.toml Normal file
View File

@@ -0,0 +1,7 @@
# This file lists tools managed by Rokit, a toolchain manager for Roblox projects.
# For more information, see https://github.com/rojo-rbx/rokit
# New tools can be added by running `rokit add <tool>` in a terminal.
[tools]
darklua = "seaofvoices/darklua@0.17.2"