vue

vue init webpack 项目名

 

=================

vue create 项目名

vue

 

--open  项目启动后,自动浏览器打开

vue

 

eslint校验功能关闭:

根目录下创建文件vue.config.js:

vue

module.exports = {
  //关闭eslint
  lintOnSave:false
}

 

vue

vue

 

 

 src文件夹简写方法,配置别名

根目录下创建jsconfig.json配置别名@提示「@代表src文件夹,后面文件太多方便查找」

vue

 

 

{ "compilerOptions": { "baseUrl": "./", "paths": { "@/*": ["src/"] } }, "exclude": ["node_modules", "dist"] }

 

上一篇:MySQL-生产环境删除大表或大量binlog策略


下一篇:error: src refspec dev does not match any. git报错