What is this?
mpvue is a front-end framework for building mini programs with Vue.js — a fork of vuejs/vue (2.4.1) with its runtime and compiler adapted to the mini program environment.
Do I write real Vue.js code with this, or some mini program dialect?
Real Vue, not a dialect: mpvue keeps the Vue runtime and adds mini program platform support, so you write standard Vue components and use the regular vue-cli tooling.
How do I start a project?
Scaffold a project with the mpvue-quickstart template through the Vue CLI tool (vue-cli) — the README links a five-minute quick-start tutorial. Development runs on a webpack build with hot reload.
Do I need to already know Vue.js to use it?
Yes — the point is the full Vue.js development experience, so Vue knowledge is the prerequisite. Vuex is available for complex app state, and npm dependencies are supported.
Is the older 1.x branch still safe to use?
Yes — projects that don't upgrade can stay on 1.x, which continues to be maintained on the 1.4.x line. Just note the newest README announcement is dated 2019-02-14, so check recent activity.
Which mini program platforms can I target with it?
WeChat out of the box; mpvue 2.0 officially adds Baidu Smart Program, Toutiao, and Alipay, and projects created with the mpvue-quickstart template default to 2.0.
Can I turn an existing H5 web app into a mini program?
Yes — one of the headline features is compiling H5 code into mini program target code, on top of writing Vue components directly.
What tools come with the framework?
The ecosystem includes mpvue-loader (a webpack loader), mpvue-webpack-target, postcss-mpvue-wxss and px2rpx-loader for style conversion, the mpvue-quickstart project template, and mpvue-simple for quickly building Page and Component level pages.
Where does the name mpvue come from?
mp is short for mini program, so mpvue reads as Vue.js in mini program.
What are similar projects?
wepy, vue, taro, vux, vant-weapp, mdx, vConsole, vue-element-admin
