How to debug a single component in the Vue project

For example, to debug About.vue this component, first enter in Terminal:

step 1:

vue serve src / views / demo.vue

 

 win + R Enter the following command:

Step 2:

npm install -g @vue/cli-service-global

 Then repeat the above steps 1 again. It can be directly read. Provided that no dependencies between components.

 

Guess you like

Origin www.cnblogs.com/yeminglong/p/12383289.html