1修改config文件夹里index.js文件的host属性,将localhost改为host: process.env.HOST || '0.0.0.0' 2在webpack.dev.conf.js增加https:true