A Mpvue project mpvue 快速入门五分钟教程传送门 http://mpvue.com/mpvue/quickstart.html
微信开发者工具传送门 https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
# 初始化项目
git clone https://github.com/epicmr/your-poster.git
cd your-poster
#安装painter
git submodule add https://github.com/Kujiale-Mobile/PainterCore.git static/dist/painter
#安装 van-weapp ui
git clone https://github.com/youzan/vant-weapp.git
将其中dist 文件夹重命名为 vant,复制到 static/dist/ 里面
# 安装依赖
npm install
# 开发时构建
npm run dev
# 打包构建
npm run build
# 指定平台的开发时构建(微信、百度、头条、支付宝)
npm run dev:wx
npm run dev:swan
npm run dev:tt
npm run dev:my
# 指定平台的打包构建
npm build:wx
npm build:swan
npm build:tt
npm build:my
# 导入项目到微信开发者工具即可运行
记得开启
es6 转 es5
不校验合法域名
# 生成 bundle 分析报告
npm run build --reportFor detailed explanation on how things work, checkout the guide and docs for vue-loader.