# Cloud Browser Static

The hyperbeam browser that we use in the hyperbeam activities needs to function as an extremely lightweight standalone static HTML page.

This projects builds a standalone HTML file that can used in Unity the also uses the Bigscreen api for auth.  It compiles and obfuscates all the javascript/css/html that a page would use, and compiles it into a single HTML page that can be served from an S3 bucket via cloudfront.

## Requirements

Node 18.17.1 is the minimally supported version.

## How to

This is a standard yarn app, so from the terminal:
```
$ yarn install
$ yarn watch
```
This will build all the files to the `dist` folder and will continuously update as you alter the code.

## About build.js

This is largely a chatGPT generated script over several iterations.  It replaces webpack as the webpage compiler.

### Running from the dist folder

Use the standard python webserver from the `dist` folder.
```
$ python -m http.server 8000
```