您需要对devServer使用watchContentBase选项: watchContentBase:true 也建议设置热:适用于模块更换和打开:真-所以当你运行开发服务器时,它会自动在默认浏览器中打开你的站点。关于devServer选项的更多信息可以在这里找到-https://webpack.js.org/configuration/dev-server/#devserverwatchoptions- EDIT 因此,经过长时间的聊天,结果如下: 仍然是"live-reload“你应该使用的页面 watchContentBase But there were other issues in this case - publicPath in devServer and outputPath were incorrect (should have leading '/' for this case) and then index.html should reference bundle.js under /public/scripts New webpack.config.js: const path = require('path') module.exports = { entry: './src/index.js', output: { path: path.resolv