在模拟后台数据的时候直接在webpack-dev-conf.js文件中修改 第一步,在const portfinder = require(‘portfinder’)后添加 第二步:找到devServer,在里面加上before()方法