vue study notes vuecli3,4

First, download vuecli

  Direct npm install -g @ vue / cli download depends on both of these two versions vue vue-template-compiler and must be the same, or will be unable to build the project

  You can be viewed by npm list vue vue -V version View vue-cli version via vue

Second, build the project using vue

  Direct input vue create my-project (your project name) in the terminal

Three, vue-cli configuration

  An input terminal to enter vue ui visualization configuration

  Configuration files node_modules @vue cli-service

  · If you want to configure it, you can build vue.config.js in the root directory to configure

  Under pubiic folder for the package holding folder

Fourth, in addition if you want to use vue-cli2

  1, first pulling version 2 template of npm install vue-init -g

  2, way of building projects vue init webpack my-project (your project name)

  

  

 

 

Guess you like

Origin www.cnblogs.com/LazyPet/p/12163412.html