Webpack dev server bootstrapping twice
Asked Answered
T

1

6

Webpack dev server is bootstrapping twice for an unknown reason. (Note that only the dev-server has this problem, if I bundle the files, everything runs ok).

I'm seeing this line executing twice:

// Load entry module and return exports
  return hotCreateRequire(790)(__webpack_require__.s = 790); 

I can also see this line two times in my browser log:

[HMR] Waiting for update signal from WDS...

These are the used versions

"webpack": "^2.1.0-beta.21"
"webpack-dev-server": "^2.1.0-beta.4",
Tabbie answered 5/10, 2016 at 14:52 Comment(1)
Possible duplicate of All my code runs twice when compiled by WebpackJacklight
T
8

I was using HtmlWebpackPlugin,

using

inject: false

Did the magic as stated in this question:

All my code runs twice when compiled by Webpack

Tabbie answered 5/10, 2016 at 19:11 Comment(2)
This works! But it changes the styles a little. Any insight on why that would be?Tableau
Maybe a problem related with the entry poin of your files @zero_cool. Maybe the css files are loaded in a different way.Tabbie

© 2022 - 2024 — McMap. All rights reserved.