首页 > 代码库 > [Webpack] Access Webpack Dev Server from Mobile Safari on an iPhone
[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
[Webpack] Access Webpack Dev Server from Mobile Safari on an iPhone
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。