默认这两个文件都要有 不然的话 webpack打包的时候 是回报错的
增加serve参数
到此 我们修改index.js 可以实时刷新数据了,完美。
npm install html-webpack-plugin -D