1.新建项目流程
1>新建文件夹放置项目
2>cmd--- F:
cd 文件夹目录
vue init webpack 项目名称 回车
? Project name test_demo 回车
? Project description A Vue.js project 回车
? Author 当前用户 <当前用户邮箱> 回车
? Vue build standalone 回车
? Install vue-router? Yes
? Use ESLint to lint your code? No
? Setup unit tests with Karma + Mocha? No
? Setup e2e tests with Nightwatch? No
3>cd 项目名称 (进入项目目录)
npm install
npm run dev
2.设置vue是否自动打开浏览器加载网页:
config ---- index.js:
autoOpenBrowser: false
3.vue-cli 去掉严格模式:
在根目录中找到 .eslintignore 文件,添加 严格模式需要监听的目录 src/*