5. Build the web target
installed luastra CLI · about 10 minutesluastra build web
Creates the production-style static artifact in dist/web by default.
When to use it
Use this after the interactive preview works and you need a deployable web artifact.
- The command should emit JSON with result=PASS and the output directory.
- The installed CLI builds web and host-neutral bundle targets; application-facing desktop/mobile packaging is not yet a CLI command.
- Serve dist/web through an HTTP server or hosting provider. Opening index.html through file:// is unsupported.
Focused example
luastra build web # Output: ./dist/web