-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Force page reload in Development when external files have changed #1508
Comments
I agree this could be a useful feature, but how do we decide what to watch for changes? We'd want it to be configuration-less. As for your local setup, you could put the npm run start behind |
Can you clarify the use case? If something's in your dependency chain then refresh should already happen. |
To be honest, I didn't think it will be a useful feature to be implemented in the library. I am just trying to find a solution to my specific problem. Putting the npm start behind nodemon, as suggested, seems to be a plausible solution. Will test later, thanks a lot! |
I believe his use case, or at least what I assumed it to be, was for when the |
Ideally I’d like if we could do this automatically, but not sure how easy (or efficient) that would be. |
I believe we could use |
Maybe related: #656. |
webpack-dev-server has built-in support for reloading files in the |
Oh that's awesome. Is it new to Webpack 2? |
@gaearon jup! Let me know if the feature doesn't fit your needs, perhaps we can improve the feature a bit on the dev-server side. |
Cool, that should be an easy PR. |
Done! See #1546. Now that CRA has moved to webpack2 I will be using a forked version of create-react-app in our new company projects :). |
Awesome 😄 |
Resolves facebook#1508 # Conflicts: # packages/react-dev-utils/webpackHotDevClient.js
Please help beta test the new version that includes this change! |
I was wondering if there was a way to watch some local folders and force webpackHotDevClient to reload the page if a change happens. Either in default mode or ejected one. Thanks!
The text was updated successfully, but these errors were encountered: