mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-10 00:31:51 +00:00
Add a --watch command line flag to be used in tandem with --load-mod. Chokidar is used to detect file updates, and a page reload is triggered when there are any changes to watched mod files. Only mods loaded via --load-mod are affected. This implementation has a minor issue with how cache is cleared - removing disk cache is a bit too aggressive - but the only alternative I could find is to use a non-persistent Electron session, which would get rid of disk cache entirely (this is not a concern). |
||
|---|---|---|
| .. | ||
| src | ||
| favicon.icns | ||
| favicon.ico | ||
| favicon.png | ||
| package-lock.json | ||
| package.json | ||
| preload.cjs | ||
| tsconfig.json | ||