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

hot module reload #240

Merged
merged 9 commits into from
Mar 1, 2016
Merged

hot module reload #240

merged 9 commits into from
Mar 1, 2016

Conversation

krystophv
Copy link
Member

Enable hot module reloading for JS/CSS in the uploader.

@@ -69,6 +70,8 @@
"redux-mock-store": "0.0.6",
"salinity": "0.0.8",
"style-loader": "0.13.0",
"webpack": "1.12.12"
"webpack": "1.12.12",
"webpack-dev-server": "^1.14.1",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please lock down these dependencies - we don't use ^. (You can do npm install --save-exact in future to avoid having to remember to change in the package.json.)

@jebeck
Copy link
Contributor

jebeck commented Feb 29, 2016

As mentioned above, please lock down the dependencies in the package.json and add an explanation of that weird warning (about the checked in key file) in the README. Otherwise LGTM, go ahead and merge @krystophv

jebeck and others added 6 commits February 29, 2016 15:49
…/chrome-uploader into krystophv/hot-module-reload

* 'krystophv/hot-module-reload' of github.com:tidepool-org/chrome-uploader:
  Add information about the key file warning chrome throws on the unpacked extension
@krystophv
Copy link
Member Author

@jebeck - Could I get a quick opinion about the summary of the warning Chrome throws on the unpacked extension? Is it clear enough?

@jebeck
Copy link
Contributor

jebeck commented Mar 1, 2016

Explanation of the warning looks good @krystophv, but want to take another look at point 10 on the README? Probably should change to explain hot-reloading. I'd put something like "React components and CSS will hot load after changes, but changes to device drivers and other code outside of the React components will not - use 'Reload' from chrome://extensions to reload after such changes."

@krystophv
Copy link
Member Author

@jebeck does 044b3ed look good?

@krystophv
Copy link
Member Author

Yeah, webpack won't die on bundle errors. There should be a way to get it to not issue the hot-update either (and thus potentially not need the App refresh - see gaearon/react-hot-boilerplate#1 ) but I couldn't get that implementation working properly, likely due to the write to disk plugin.

krystophv added a commit that referenced this pull request Mar 1, 2016
@krystophv krystophv merged commit 7c4b843 into master Mar 1, 2016
@krystophv krystophv deleted the krystophv/hot-module-reload branch March 1, 2016 20:18
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

Successfully merging this pull request may close these issues.

2 participants