-
-
Notifications
You must be signed in to change notification settings - Fork 3.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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
avishek143
wants to merge
1
commit into
webpack:main
from
avishek143:development-webpack-dev-server-browser-refresh
Open
docs(guides): auto reload fixed in Development #6063
avishek143
wants to merge
1
commit into
webpack:main
from
avishek143:development-webpack-dev-server-browser-refresh
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
CLA Signed
The committers listed above are authorized under a signed CLA.
- ✅ login: avishek143 / name: Avishek Banerjee (f78b89e)
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/webpack-docs/webpack-js-org/HHYeVATB887MsTpznpSNYxLto1A5
✅ Preview: https://webpack-js-org-git-fork-avishek143-developm-80098b-webpack-docs.vercel.app
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the Development 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 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 todevServer
iswatchFiles: ['./src/**/*.*']
Fixes: webpack/webpack#15477