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

How to use webpack+vue environment LAN

php中世界最好的语言
Release: 2018-06-15 11:23:17
Original
1877 people have browsed it

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

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!

Related labels:
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!