Vue项目更改为local以及Network启动
compilationSuccessInfo: {messages: [`App runing at: `,`Local: http://localhost:${port}`,`Network: http://${require('ip').address()}:${port}`,]},
·
1、更改config文件里面的host地址为:0.0.0.0
2、更改webpack.dev.conf.js文件compilationSuccessInfo更改成下列配置
compilationSuccessInfo: {
messages: [
`App runing at: `,
`Local: http://localhost:${port}`,
`Network: http://${require('ip').address()}:${port}`,
]
},
更多推荐
已为社区贡献3条内容
所有评论(0)