使用 mpvue 技术开发的小程序
# install dependencies
npm 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
- 技术栈:小程序, mpvue,es6 等
- 依赖插件
- mpvue-entry:vue-router 兼容的路由写法
- mpvue-router-patch:集中式页面配置,自动生成各页面的入口文件,优化目录结构,支持新增页面热更新
- scss:预处理器
- vuex: 进行状态管理
- flyio: 数据交互
- vuex-persistedstate:数据持久处理
─ src
├── api #接口封装
├── assets #图片等静态资源
├── components #组件
├── config #全局变量配置
├── pages #页面
├── router #路由配置
│ ├── index.js
├── store #状态状态管理
│ ├── modules #拆分模块
│ ├── index.js
├── utils #工具方法
│ ├── index.js
├── App.vue
├── app.json
├── main.js
For detailed explanation on how things work, checkout the guide and docs for vue-loader.