vue 基础范例
- 初始化项目
> npm init -y
- 添加 browser-sync
> npm install --save-dev browser-sync
- 编辑启动脚本
vi package.json
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "./node_modules/.bin/browser-sync start --server --no-notify --files='*.html, *.css, *.js'"
}
- 启动测试
> npm run start