How to create Vue scaffolding and turn off syntax checking
1. Install vue-cli
win+r globally, enter cmd to open the command window,
enter npm install -g@vue/cli
2. cd to the directory where the project needs to be stored
3. Use the command to create
vue create vue_test
Where vue_test is the project name
4. Select the version of vue.
After selecting the up and down arrows, press Enter.
5. Close the grammar check
① Add vue.config.js The name must not be wrong, and the location must not be wrong
② The content in vue.config.js
module.exports={
pages:{
index:{
//入口
entry:'src/main.js'
},
},
lintOnSave:false //关闭语法检查
}
After the configuration is complete, you can use the command npm run serve
to start the vue project