Home > Web Front-end > JS Tutorial > body text

Webpack Vue project development environment LAN access method

亚连
Release: 2018-05-25 16:46:43
Original
2130 people have browsed it

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 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
Copy after login

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!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!