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

2023-05-25编程技术132217

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的相关教程结束。

本文地址:https://www.ufcn.cn/tutorials/2671508.html

如非特殊说明,本站内容均来自于网友自主分享,概不代表本站观点,如有任何问题我们都将在收到反馈后的第一时间进行处理!