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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hot module reloading as progressive enhancement #3

Open
2 of 5 tasks
iandunn opened this issue Feb 2, 2021 · 1 comment
Open
2 of 5 tasks

Add hot module reloading as progressive enhancement #3

iandunn opened this issue Feb 2, 2021 · 1 comment

Comments

@iandunn
Copy link
Owner

iandunn commented Feb 2, 2021

HMR would be a nice devex enhancement for those who do want some light watch tooling.

I don't think it'd be possible to do it solely w/ a script running in the browser, but I haven't researched that assumption. If it is, then 🎉

  • live reloading js, css
  • live reload php
  • hrm js
  • hmr css
  • react fast refresh - maybe the problem is gutenberg's abstraction layer over react?
@iandunn iandunn changed the title Add hot module reloading Add hot module reloading as progressive enhancement Feb 2, 2021
iandunn added a commit that referenced this issue Feb 3, 2021
This temporarily breaks bable transpilation of HTM etc, but I'll fix that in a follow-up commit.

Fixes #1
Fixes #2

See #3 because Snowpack provides HMR. It's `dev` task could be used for that, but would want to disable the localhost server.
See #7 for the use of import maps.
@iandunn
Copy link
Owner Author

iandunn commented Feb 4, 2021

9a391b3 set up live reloading, but it should be possible to go much farther and add Hot Module Reloading, and React Fast Refresh

iandunn added a commit that referenced this issue Feb 12, 2021
See #3 - This fixes HMR, but not React Fast Refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant