Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.3k
docs(guides): auto reload fixed in Development#6063
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
docs(guides): auto reload fixed in Development#6063
Uh oh!
There was an error while loading.Please reload this page.
Conversation
In the [Development Guide under Using Watch Mode section] (https://webpack.js.org/guides/development/#using-watch-mode) the content says:>The only downside is that you have to refresh your browser in order to see the changes. It would be much nicer if that would happen automatically as well, so let's try webpack-dev-server which will do exactly that.The follow-on section about webpack-dev-server is expected to provide guidance about creating a setup that would reload new code as it is written and refresh the browser to show the changes. But the code example doesnot do so. The problem is in the webpack.config.js code example. The devServer configuration as mentioned will not refresh the browser. To actually refresh the page the minimum configuration that needs to be added to devServer is`watchFiles: ['./src/**/*.*']`Fixes:webpack/webpack#15477
linux-foundation-easyclabot commentedMar 26, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
|
vercelbot commentedMar 26, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect:https://vercel.com/webpack-docs/webpack-js-org/HHYeVATB887MsTpznpSNYxLto1A5 |
In theDevelopment Guide under Using Watch Mode section the content says:
The follow-on section about webpack-dev-server is expected to provide guidance about creating a setup that would reload new code as it is written and saved and refresh the browser to show the changes. But the code example doesnot do so. The problem is in thewebpack.config.js code example. The
devServer
configuration as mentioned will not refresh the browser. To actually refresh the page the minimum configuration that needs to be added todevServer
iswatchFiles: ['./src/**/*.*']
Fixes:webpack/webpack#15477