taro 进阶指南
配置
https://nervjs.github.io/taro/docs/config.html
https://nervjs.github.io/taro/docs/config-detail.html
https://nervjs.github.io/taro/docs/project-config.html
alias
defineConstants
全局变量
https://webpack.js.org/plugins/define-plugin/
defineConstants: {
A: JSON.stringify('a') // '"a"'
}
路由
https://nervjs.github.io/taro/docs/router.html
API
https://nervjs.github.io/taro/docs/apis/interface/navigation/navigateTo.html
https://developers.weixin.qq.com/miniprogram/dev/api/wx.navigateTo.html
import Taro from '@tarojs/taro'
Taro.navigateTo(params).then(...)
混合开发
https://nervjs.github.io/taro/docs/mini-third-party.html
https://nervjs.github.io/taro/docs/hybrid.html
redux & css-modules
https://nervjs.github.io/taro/docs/redux.html
https://nervjs.github.io/taro/docs/css-modules.html