这里写目录标题

  • 1、构建项目
    • 2、项目笔记

1、构建项目

1、创建项目
vue create xmall-front
2、选择预设
Manually select features
3、
选择router 、vuex
(Linter / Formatter处理写代码的时候可能出现的错误)
回车构建项目
4、cd xmall_front/
5、npm run serve. 成功后, 初始化项目完成
6、添加UI:vue add element
7、添加预处理器(Sass/Less/Stylus):npm install -D sass-loader node-sass
8、添加接口工具:cnpm i axios -S / npm install axios –save
9、添加图片懒加载:npm install vue-lazyload –save

2、项目笔记

本文地址:https://blog.csdn.net/qq_33575051/article/details/114324421