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

posted @ 2017-11-14 11:15  昨日微风  阅读(1514)  评论(0编辑  收藏  举报