I changed the dev of scripts in package.json to "dev": "webpack-dev-server-- open", but there was no page effect.
document structure:
:webpack-dev-serverdev
package.json:mainjsindex.jsindex.jsdistjsbundle.jsbundle.js
webpack.config.js:contentBasejsjshtmlhtmldisthtml
(first contact, confused, looking forward to your reply! )