How to create Vue scaffolding and turn off syntax checking

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

insert image description here
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.
Please add a picture description
5. Close the grammar check
① Add vue.config.js The name must not be wrong, and the location must not be wrong
insert image description here
② 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 serveto start the vue project

Guess you like

Origin blog.csdn.net/weixin_44747173/article/details/125362999