Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.47 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.47 KB

mtgtools.v2

mtgtools.v2

Build Setup

# 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

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

mpvue-quickstart

fork 自 F-loat/mpvue-quickstart 修改而来

tree

基本用法

$ npm install -g @vue/cli @vue/cli-init
$ vue init F-loat/mpvue-quickstart my-project
$ cd my-project
$ npm install
$ npm run dev

主要特性

  • 移除 express 等无关依赖
  • 引入 mpvue-entry,移除冗余的 main.js 文件
  • 引入 mpvue-config-loader,支持在 vue 文件中书写页面配置
  • 引入 mpvue-router-patch,支持使用类 vue-router 的 api
  • 引入 vant-weapp,全局配置原生组件库,快速搭建页面
  • 支持官方分包(mpvue-loader@^1.1.0),简化配置方式

详细文档请查阅

打算拿mpvue重写下mtgtools小程序 顺带着学学