Build web
luastra build web
Creates a complete static web application in dist/web: the compiled bundle plus the compatible Wasm VM, browser host, renderer, HTML, CSS, JavaScript, and project assets.
When to use it
Use when you need a production-style web artifact for HTTP serving or deployment verification.
- This is the build users can open through an HTTP server or deploy to static hosting.
- Opening dist/web/index.html through file:// is unsupported.
- Use luastra run instead when you need watch-mode rebuilding during development.
Focused example
luastra build web