Skip to content

devServer.hot not working. #2779

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

Closed
1 of 2 tasks
oimmc opened this issue Oct 19, 2020 · 3 comments
Closed
1 of 2 tasks

devServer.hot not working. #2779

oimmc opened this issue Oct 19, 2020 · 3 comments

Comments

@oimmc
Copy link

oimmc commented Oct 19, 2020

  • Operating System: OSX
  • Node Version: 10.22.0
  • "webpack": "^5.1.0",
  • "webpack-cli": "^4.0.0",
  • "webpack-dev-server": "^3.11.0",
  • This is a bug
  • This is a modification request

Code

devServer: {
  historyApiFallback: true,
  host: '0.0.0.0',
  port: 8989,
  compress: true,
  noInfo: true,
  useLocalIp: true,
  hot: true,
  open: false
}
"start": "cross-env NODE_ENV=development webpack serve --progress --config webpack.dev.js"

run npm start, hot not working.

@dsngo
Copy link

dsngo commented Oct 19, 2020

Set target: "web" will fix your problem.

module.exports = {
  // ...
  target: "web"
};

@ylemkimon
Copy link
Contributor

Duplicate of #2758.

@alexander-akait
Copy link
Member

Duplicate

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

4 participants