Hot Reloading / Faster Iteration for Module React UI Development

If you run your gateway with a system property override (e.g. via wrapper.java.additional in the ignition.conf file) following a format of res.path.moduleID, pointing to a semicolon delimited list of absolute file paths, the module's contained resources will be skipped and we'll go directly to those paths to try to load contained resources.

That's a long sentence, but tl;dr:
-Dres.path.com.inductiveautomation.reporting=/Users/pgriffith/Projects/ignition-81/Modules/reporting/web/reporting-components/build/dist;/Users/pgriffith/Projects/ignition-81/Modules/reporting/web/status/build/dist

The folder(s) you point to must match the final structure that would be delivered in your module's return from getMountedResourceFolder call.

Also, all this is different in 8.3. I can explain that in another post.

3 Likes