Hot Reloading
Is there a way to do something like hot module reloading/live reloading on change for Foundry?
5 Replies
There's this template which uses webpack to accomplish this:
https://github.com/Blackcloud010/FoundryVTT-Module-Template-Hotswap
It's set up for Typescript but you can probably hack and slash it for standard JS.
Thanks @blackcloud010 in advance 😉
GitHub
GitHub - Blackcloud010/FoundryVTT-Module-Template-Hotswap: A templa...
A template for creating foundry modules using typescript. Project files are setup to be hot reloaded. - GitHub - Blackcloud010/FoundryVTT-Module-Template-Hotswap: A template for creating foundry mo...
@calego gave LeaguePoints™ to @blackcloud010 (#106 • 9)
Unknown User•4y ago
Message Not Public
Sign In & Join Server To View
Chrome Workspaces also facilitate "hot reload"-like behavior.
https://discord.com/channels/732325252788387980/756610562787508284/785603851247288342
Okay, cool. Once I get to sit down and work on my stuff again, I'll see if I can't get either of those approaches going -- either the webpack route or the Chrome Workspaces route.
I've been trying to avoid having a build step in my workflow just because the idea of manually rerunning after making a change, then having to refresh too kills me a little inside 🙃