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

Just a question #159

Closed
brianbier opened this issue Sep 29, 2016 · 5 comments
Closed

Just a question #159

brianbier opened this issue Sep 29, 2016 · 5 comments

Comments

@brianbier
Copy link

Hey I was trying to understand how the webpack auto reload is working.
I know your using a webpack-dev-server, but what part of your code is forcing the reload to happen when you edit a component?

Thanks in advance. Any resources is much appreciated.

@alicoding
Copy link
Collaborator

Hi,

So the hot-loader works based on this line here https://github.com/alicoding/react-webpack-babel/blob/master/webpack.config.js#L43

Basically, it just wait for file changes and that's the entry point, so anything that file is loaded will be watched as well.

Hope this help?

@brianbier
Copy link
Author

Hey, Thanks for your response.

So what exactly is the HtmlWebpackPlugin doing?

@alicoding
Copy link
Collaborator

@brianbier its basically load in an HTML file and replace it with variables and kind of compiling https://github.com/ampedandwired/html-webpack-plugin

@brianbier
Copy link
Author

@alicoding Got it. Thanks so much. All that was helpful.

@alicoding
Copy link
Collaborator

You're welcome :)

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

2 participants