版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/JamieCheung/article/details/80830848
在webpack.config.js文件中,
在module.export = {
}
中的devServer中添加:
port: 8888,
devServer: {
historyApiFallback: true,
noInfo: true,
port: 8888,
},