tweaks
This commit is contained in:
parent
40b4752ed2
commit
1c383282dd
29 changed files with 241 additions and 108 deletions
18
README.md
18
README.md
|
|
@ -2,6 +2,24 @@
|
|||
|
||||
Open `index.html` in a browser.
|
||||
|
||||
Production uses the committed `dist/game.js` bundle. Edit source files under
|
||||
`src/`, then run `npm install` once and `npm run build` after JavaScript
|
||||
changes to regenerate the bundle.
|
||||
|
||||
## Static server cache setup
|
||||
|
||||
Serve `index.html`, the bundled JavaScript, and CSS with cache validation
|
||||
instead of import query strings. This prevents stale files while keeping reloads
|
||||
fast.
|
||||
|
||||
Use the example in `deploy/` for your HTTP server:
|
||||
|
||||
- nginx: include `deploy/nginx-cache.conf` inside the server block.
|
||||
- Apache: copy or include `deploy/apache-cache.htaccess` from the site root.
|
||||
- Caddy: adapt `deploy/Caddyfile-cache`.
|
||||
|
||||
After deploying, purge any CDN or reverse-proxy cache once.
|
||||
|
||||
## Current baseline
|
||||
|
||||
- Build, move, box-select, sell, and repair factory equipment during Build phase.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue