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

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

    原文作者:Zhentiw
    原文地址: https://www.cnblogs.com/Answer1215/p/6725882.html
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞