05-配置好history模式的路由以后,刷新浏览器出现404
原因:
devServer里面没有配置historyApiFallback

解决方法:
const devServer = {
port: 8000,
host: '0.0.0.0',
historyApiFallback:{
index:'/index.html'
},
overlay: {
errors: true,
},
hot: true
}

浙公网安备 33010602011771号