🔨 Add darklua for minify production script.
This commit is contained in:
15
.darklua.json
Normal file
15
.darklua.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -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
7
rokit.toml
Normal 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"
|
||||||
Reference in New Issue
Block a user