方案一
在entry入口添加要更新的html页面
module.exports = {
entry: ['./src/js/main.js', './src/index.html'],//添加更新的./src/index.html
}
方案二
在devServer中添加watchFiles
devServer: {
watchFiles: [ './src/index.html'],
}
方案一
在entry入口添加要更新的html页面
module.exports = {
entry: ['./src/js/main.js', './src/index.html'],//添加更新的./src/index.html
}
方案二
在devServer中添加watchFiles
devServer: {
watchFiles: [ './src/index.html'],
}