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

Using vue-devtools from scratch

php中世界最好的语言
Release: 2018-06-06 14:50:53
Original
1524 people have browsed it

This time I will bring you how to use vue-devtools from scratch. What are the precautions for using vue-devtools? The following is a practical case, let's take a look.

vue-devtools is a plug-in based on chrome browser, used to debug vue applications. Since the Google Store cannot be accessed in China (you need to be scientific on the Internet), the installation is more troublesome. I will write an article to record it.

Step one

Clone vue-devtools to local

git clone https://github.com/vuejs/vue-devtools.git

The second step

Install the dependency package in the vue-devtools directory


cd vue-devtools
npm install
Copy after login

The third step

Compile code


npm run build
Copy after login

Step 4

Modifyvue-devtools/shells/chrome/manifest.json File, change persistent to true

Step 5

Open chrome, enter chrome://extensions/ Enter Chrome extension settings page

Open the developer mode in the upper right corner

Click to load the decompressed extension and select vue-devtools/shells/chrome

Note: Check to allow access to file URLs

At this point, vue-devtools has been installed. Enjoy it!

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

Recommended reading:

Using the beforeEnter hook function (with code)

react application development scaffolding use case

The above is the detailed content of Using vue-devtools from scratch. 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