@brunolm/unity-build-server
v1.0.1
Published
This project is a simple Express server for serving static files, with special handling for `.br` (Brotli-compressed) and `.wasm` (WebAssembly) files generated by Unity WebGL builds.
Downloads
8
Readme
Unity Build Server
This project is a simple Express server for serving static files, with special handling for .br (Brotli-compressed) and .wasm (WebAssembly) files generated by Unity WebGL builds.
Features
- Serves all files in the project directory as static assets.
- Handles Brotli-compressed files (
.br), setting the correctContent-Encodingheader. - Sets the correct MIME type for
.wasm.brfiles (application/wasm). - CORS enabled for all origins and methods.
Env
- PORT: Default 3001.
Usage
Go to the build directory:
npx @brunolm/unity-build-serverOpen http://localhost:3001/
Disclaimer
This project is not associated with, endorsed by, or affiliated with Unity Technologies or any of its subsidiaries. It is an independent utility helper created solely for serving Unity WebGL builds and related static files. Use at your own risk.
