$ cd Documents
$ rbx-merge --input place.rbxl --path game.StarterGui.LocalScript --minify true --output merged.lua
All of the imported modules and the main script will be recursively merged and minified into 'merged.lua'! Enjoy!
https://github.com/CloneTrooper1019/Roblox-File-Format
https://github.com/Myndale/KopiLua
https://github.com/Rerumu/lua-minify
https://github.com/Nexure (for help with regex and lua things)