使用 Remax 开发跨平台小程序。
安装依赖
npm install
调试项目
# 选定要进行开发的平台,如 wechat,并调试
$ npm run dev wechat
or
yarn dev wechat
使用小程序开发者工具打开项目下的 dist/[target]
目录。
# 选定要构建的平台,如 wechat,并执行构建
$ npm run build wechat
or
$ yarn build wechat
使用小程序开发者工具打开项目下的 dist/[target]
目录,上传代码即可。