@heathenjs/taro-router-cli
v1.1.5
Published
通过cli命令行生成 @heathenjs/taro-router 路由方法
Readme
@heathenjs/taro-router-cli
通过cli命令执行路由生成能力,配置、生成方式与生成内容与 @heathenjs/taro-router-plugin 一致
配置
参考 @heathenjs/taro-router-plugin
使用示例
在 package.json 的 scripts 中增加
{
"scripts": {
"update:router": "taro-router-helper update"
}
}后通过
pnpm update:router即可执行。
推荐配置到 postinstall 脚本,更新依赖时自动更新路由。
