webpack dev server 外网访问、远程访问

参考链接Server can't be accessed via IP · Issue #147 · webpack/webpack-dev-server · GitHub

部署在阿里云服务器上时,启动调试环境,外网无法访问

"webpack-dev-server": "^2.9.1"

 解决办法:

将webpack-dev-server配置的host改为 0.0.0.0 即可

你可能感兴趣的:(webpack dev server 外网访问、远程访问)