首页 > 数据库技术 > 详细

[Webpack] Access Webpack Dev Server from Mobile Safari on an iPhone

时间:2017-04-18 10:09:15      阅读:147      评论:0      收藏:0      [点我收藏+]

Testing your sites on mobile devices is a critical part of the development process. Webpack dev server enables you to visit the server from any device using the host option. This lesson walks you through accessing webpack dev server using an iPhon

 

Check you ip address:

ifconfig

 

For scripts:

"start": "webpack-dev-server --open --hot --host 0.0.0.0 --port 4000"

 

After running the application, go to your ip address:port on your iphone, you should be able to access the app and hot reloading enabled

[Webpack] Access Webpack Dev Server from Mobile Safari on an iPhone

原文:http://www.cnblogs.com/Answer1215/p/6725882.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!