Guides Build & Release Web Export Web Export Reference

Build & Release Web Export 2 min read Updated Nov 2026

Web Export Reference

This page lists the controls of the Web target in Project > Build & Export..., what preflight checks, and what the exported ZIP contains. For the step-by-step workflow, see Export a Web build.

Build Settings Tab

Control What it does
Targets > Web Shows the Web settings. Desktop shows the settings for the computer you are working on.
Build Profile Selects a saved Web profile, or Project Defaults to build without one.
New, Duplicate, Edit, Delete Create, copy, change or remove a saved Web profile. Deleting a profile keeps the ZIPs built with it.
Profile Name The name shown in Build Profile. Appears while you create or edit a profile.
Startup Scene The scene a Web build opens first. Project Default follows the project. Lists only scenes ticked in Scenes in Build.
Show Console overlay Adds an on-screen log to the player. Saved in the selected profile. Off by default.
Show Fullscreen and Audio controls Adds Fullscreen and Audio buttons to the player. Saved in the selected profile. Off by default.
Save Profile, Discard Changes Keep or drop the changes to the profile you are editing.
Refresh Dependencies Works out again which files the build needs, from the saved scenes and assets.
Copy Report Copies the last preflight result or error.
Scenes in Build The scenes the build includes, in order. The checkbox includes or leaves out a scene, the arrows reorder it, and Add Scene adds a saved scene. (Startup) marks the scene that opens first. Shared with the Desktop target.
Export Summary Shows the target, the Release configuration, the HTML game ZIP output and whether Web tools are available in this installation.

The buttons along the bottom:

Button What it does
Run Preflight Checks the project without making a ZIP. Shows Cancel Preflight while it runs.
Build Web ZIP Checks the project, asks for a folder and writes the ZIP.
Build & Run Does the same, then plays the ZIP in your browser.
Close Closes the window.

Export Status

Export Status opens while a build runs and stays open with the result.

Control What it does
Cancel Build Stops the build. A ZIP from an earlier build at the same place is left as it was.
Open Folder Opens the folder that holds the ZIP.
Open Browser Opens the local preview again.
Stop Preview Stops the local preview.
copy Copies the build report, including the ZIP size and the unpacked game data size.

Build History Tab

The Build History tab lists the Web and Desktop builds made from this project on this computer, including failed and cancelled ones. Pick a build from the list to see its folder, profile and startup scene.

Button What it does
Copy Report Copies the report of the selected build.
Open Folder Opens the folder that holds the selected build.
Run Player Plays the selected Web ZIP again. It runs only while the ZIP is unchanged since the build.

What Preflight Checks

  • The project's settings and that its Lenga version matches the installation.
  • The startup scene, and that every ticked scene in Scenes in Build exists.
  • Every file the scenes and assets name, including model textures, material and skybox textures, shader files and tileset images.
  • That textures, audio and models in the build have been imported in the editor.
  • That the dependency list matches the saved project. If it does not, preflight asks you to refresh it.
  • PHP syntax in your scripts, and that Composer packages your project needs are installed.
  • That the physics settings use Box2D for 2D and Jolt for 3D, the engines available in a browser.

A failure names the file and, for a missing file, the scene or asset that uses it.

What the ZIP Contains

File Contents
index.html The page that starts the game.
lenga_runtime.js The player's JavaScript.
lenga_runtime.wasm The Lenga engine and PHP, compiled to WebAssembly.
lenga_runtime.data Your game: project settings, the scenes in the build, every file they and their assets use, your PHP scripts, bootstrap.php, Composer files and installed packages.

Build profiles and the dependency list stay out of the ZIP. Reports and logs are never part of it.

Project Files

File Purpose
ProjectSettings/BuildProfiles/ Saved Web profiles. Keep them in version control to share them with your team.
ProjectSettings/web-export-dependencies.json The dependency list that Refresh Dependencies writes: the files the build needs and which asset uses each one.

Add Files That Scripts Load by Name

Lenga finds the files your scenes and assets name. A file that only a script names, for example a texture picked by a level number, needs an entry in the dependency list. If ProjectSettings/web-export-dependencies.json does not exist yet, choose Refresh Dependencies once to create it. Open the file and add the path to the include list inside source > explicit:

"explicit": {
  "include": ["Assets/Sprites/Bonus.png"],
  "includeDirectories": ["Assets/Levels"]
}

Use includeDirectories for a whole folder. Keep the other entries, then choose Refresh Dependencies and Run Preflight. Refresh keeps what you add here.