Home > Article > Web Front-end > Webpack Vue project development environment LAN access method
Below I will share with you a webpack vue project development environment LAN access method, which has a good reference value and I hope it will be helpful to everyone
Ideas: Fix the startup IP and port of your project. Of course, the port can also be the default 8080
Steps:
1. Check your own ip in the LAN
Command line ipconfig
2. Return to your development directory and find comfig/index.js## in the root directory
#Modify host: own LAN ipModify port: custom port - it is best not to use 80 or other commonly used portsExample: comfig/index.js
host:'http://192.168.2.153',//一定要加上 http port:3000
Note: Once the ip here is fixed, the local host or localhost will not be accessible. You must also Use this IP, and use this IP to access the LAN as well.
The above is what I compiled for everyone. I hope it will be helpful to everyone in the future. Related articles:Ajax and cgi communication under Boa server (graphic tutorial)
Ajax Struts2 implements verification code verification function (Graphic tutorial)
Ajax click to continuously load the data list (Graphic tutorial)
The above is the detailed content of Webpack Vue project development environment LAN access method. For more information, please follow other related articles on the PHP Chinese website!