vin-spiegel / lua-bundler-node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 92.8%Language:Lua 7.2%