Home > Article > Web Front-end > How to use webpack+vue environment LAN
This time I will show you how to use webpack vue environment LAN, what are the precautions for using webpack vue environment LAN, the following is a practical case, let's take a look.
Steps:
1. Check your ip 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 own LAN ip
Modify port: Custom port - it is best not to use 80 or other commonly used ports
Example: comfig/index.js
host:'http://192.168.2.153',//一定要加上 http port:3000
I believe I read it You have mastered the method in the case of this article. For more exciting information, please pay attention to other related articles on the php Chinese website!
Recommended reading:
How to use AngularJS to monitor rendering
How to handle the dynamic parameter passing of query in vue-router
The above is the detailed content of How to use webpack+vue environment LAN. For more information, please follow other related articles on the PHP Chinese website!