Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Support reload on change workflow again #9

Merged
merged 1 commit into from
Feb 20, 2022
Merged

Conversation

itsMapleLeaf
Copy link
Owner

@itsMapleLeaf itsMapleLeaf commented Feb 20, 2022

This change updates the options for initRemix to also accept a path to the server build. A path will make it behave as it did before v1.0.0: on each HTTP request, purge the require cache, then require the server build. This should allow changes to be shown on reload again, without having to restart the entire electron app.

Passing the full server build is still supported, so this isn't a breaking change, but seeing changes on refresh requires passing a path.

Using a separate server build also means we can't use the server build feature for a TS entry anymore 🥲 but if it's between that and reload on change, I'll pick the second any day.

@itsMapleLeaf itsMapleLeaf added the enhancement New feature or request label Feb 20, 2022
@itsMapleLeaf itsMapleLeaf self-assigned this Feb 20, 2022
@itsMapleLeaf itsMapleLeaf merged commit 6a8960d into main Feb 20, 2022
@itsMapleLeaf itsMapleLeaf deleted the reload-on-change branch February 20, 2022 22:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant