素材巴巴 > 程序开发 >

angular4实现用IP加端口和用localhost加端口访问页面

程序开发 2023-09-03 17:13:26

1.配置node_modules/webpack-dev-server/lib/Server.js 将425行return false; 改为return true;

2.配置package.json为 “start”: “ng serve –host 0.0.0.0”.

 

转载于:https://www.cnblogs.com/happiness-mumu/p/9187497.html


标签:

素材巴巴 Copyright © 2013-2021 http://www.sucaibaba.com/. Some Rights Reserved. 备案号:备案中。