Home

Awesome

BalmJS template - vue-wechat-mp

A Vue.js project for WeChat Mini Program

Demos

vue-wechat-mp

Requirements

npm install -g balm-cli balm-core
# OR
yarn global add balm-cli balm-core
# Verify
balm -V

# Output:
# balm-cli: 4.0.0
# balm-core: 4.0.0

Installation

balm init vue-wechat-mp my-project

cd my-project
yarn
# or
npm i

Enjoy

# For web development
npm run web:dev

# For miniprogram development
npm run mp:dev

# For web & miniprogram development
npm run dev

使用微信开发者工具导入项目 .mp,之后便可以像开发 web 项目一样开发小程序

# For web & miniprogram production
npm run prod

使用微信开发者工具导入项目 dist/mp,之后便可预览构建好的小程序