Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
avishek143 wants to merge1 commit intowebpack:main
base:main
Choose a base branch
Loading
fromavishek143:development-webpack-dev-server-browser-refresh

Conversation

avishek143
Copy link

In theDevelopment Guide under Using Watch Mode section 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 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. ThedevServer configuration as mentioned will not refresh the browser. To actually refresh the page the minimum configuration that needs to be added todevServer is
watchFiles: ['./src/**/*.*']

Fixes:webpack/webpack#15477

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-easycla
Copy link

linux-foundation-easyclabot commentedMar 26, 2022
edited
Loading

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: avishek143 / name: Avishek Banerjee (f78b89e)

@vercel
Copy link

vercelbot commentedMar 26, 2022
edited
Loading

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 freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Fails to update index.js when using webpack-dev-server
1 participant
@avishek143

[8]ページ先頭

©2009-2025 Movatter.jp