1.修改webpack.dev.conf.js
publicPath 设置成 /
2.webpack.base.conf.js
publicPath 设置成 /
3.package.json
scripts -> dev 添加参数--history-api-fallback
1.修改webpack.dev.conf.js
publicPath 设置成 /
2.webpack.base.conf.js
publicPath 设置成 /
3.package.json
scripts -> dev 添加参数--history-api-fallback