Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 557 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 557 Bytes

Usage

Bundle Lua files into one:

lua-bundler f "./example/src/Main.lua" "./example/dist/bundle.lua"

Inject to war3map.lua:

lua-bundler w "./example/src/Main.lua" "./example/dist/war3map.lua"

Add -p (production) to minify bundled lua

lua-bundler f "./example/src/Main.lua" "./example/dist/bundle.lua" -p
lua-bundler w "./example/src/Main.lua" "./example/dist/war3map.lua" -p

Require flavours

require("Modules/Module")
require "Modules.Module"

Build with pkg

e.g. pkg . -t node12-win-x64