Home  >  Article  >  Web Front-end  >  How to use webpack+vue environment LAN

How to use webpack+vue environment LAN

php中世界最好的语言
php中世界最好的语言Original
2018-06-15 11:23:171919browse

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!

Statement:
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
Previous article:Configure sass in vueNext article:Configure sass in vue