When I build my js bundle with webpack using webpack-dev-server my code runs twice every time. Not sure how to fix it.
webpack-dev-server
Screenshot of Developer Tools con
in the template file you might have manually added a loading the bundle.
If you don't have the
inject: false
option in
new HtmlWebpackPlugin({ template: path.join(__dirname, '../src/index.html') }),
the bundle will get added again.