Vue项目开启步骤

## Build Setup

# install cnpm //安装淘宝CNPM镜像
npm install -g cnpm --registry=http://registry.npm.taobao.org

``` bash
# install dependencies //安装项目依赖
cnpm install

# serve with hot reload at localhost:8080 //运行项目
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report
```

For a detailed explanation on how things work, check out the [guide](http://vuejs-templates.github.io/webpack/) and [docs for vue-loader](http://vuejs.github.io/vue-loader).

Done

原文地址:https://www.cnblogs.com/chuancheng/p/7831540.html