Vue 项目搭建
一. 安装 Nodejs
二. 安装 Vue 命令
npm install -g @vue/cli三. 创建 Vue 项目
# 创建过程中选择 babel 可兼容更多浏览器
vue create webapp四. 手动安装插件
cd webapp
# 安装 vue-router
npm install vue-router --save
# 安装 vuex
npm install vuex --save
# 安装 axios
npm install axios --save五. 常用命令
六. 修改 Vue 配置
七. 单一入口配置
最后更新于