Webpack vue Project Development Environment LAN access method, webpackvue
Ideas:Set the startup ip address and port of your project. Of course, the port can also be 8080 by default.
Steps:
1. view your own ip address in the LAN
Command Line ipconfig
2. Go back to your Development Directory and find comfig/index. js in the root directory.
Modify host: your local network ip address
Modify port: Custom port-it is best not to use 80 or other common ports
Example: comfig/index. js
Host: 'http: // 192.168.2.153 ', // you must add http port: 3000
Note:Once the ip address is fixed here, access from the local machine or localhost will not be accessible. This ip address must also be used, and access from the LAN will be the same.
The above webpack vue Project Development Environment LAN access method is all the content shared by the small Editor, I hope to give you a reference, but also hope you can support a lot of help homes.