码迷,mamicode.com
首页 > 其他好文 > 详细

vue-cli 使用步骤

时间:2018-04-22 18:11:29      阅读:168      评论:0      收藏:0      [点我收藏+]

标签:bpa   bsp   使用   依赖   使用步骤   pac   项目   nbsp   build   

1、安装vue-cli:  cnpm install vue-cli -g

2、初始化: vue init webpack-simple [项目名称] 或 vue init webpack [项目名称]

3、安装依赖: cd  [项目名称]   然后 cnpm install

4、运行项目: npm run dev

5、打包: npm run build

6、其他:  

  安装路由: cnpm install vue-router -s

  安装axios: cnpm install axios -s

vue-cli 使用步骤

标签:bpa   bsp   使用   依赖   使用步骤   pac   项目   nbsp   build   

原文地址:https://www.cnblogs.com/kerryw/p/8908259.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!