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

Problems with VUE-CLI @2.9.1 and later versions

php中世界最好的语言
Release: 2018-03-09 14:33:36
Original
1873 people have browsed it

This time I will bring you the problems of VUE-CLI @2.9.1 and later versions. What are the bugs in VUE-CLI @2.9.1 and later versions that need to be paid attention to. The following is a practical case, let’s take a look.

bug

(1) Modify the configuration of index.js in the config directory: change localhost to '0.0.0.0' //ps (local ip)


Problems with VUE-CLI @2.9.1 and later versions

Or you can add '--host 0.0.0.0'# in package.json


Problems with VUE-CLI @2.9.1 and later versions

##Run it again and change 0.0.0.0 in the address bar to your own IP to access. However, I can’t see the content on the mobile phone! ! ! (The display is abnormal for Apple ios 11 and below, but normal for ios 11 and above. This is the rhythm that forces me to upgrade)

So, I continued to search for information~~~~~

(2) Modify config Configuration of index.js in the directory: Just change 'eval-source-

map' to 'inline-source-map'

I believe you have mastered the method after reading the case in this article , for more exciting content, please pay attention to other related articles on the php Chinese website!

Related reading:

2018 Common Algorithm Questions for Front-end Interviews

##commonJS Detailed Explanation

The above is the detailed content of Problems with VUE-CLI @2.9.1 and later versions. 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