Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant