TaroPluginContext
Defined in: index.ts:45
Experimental
本插件用到的 Taro 插件上下文,结构上兼容 @tarojs/service 的 IPluginContext。
Properties
paths
readonly paths: object;
Defined in: index.ts:47
Experimental
项目路径;appPath 是 app 根目录,从这里解析 adapter。
appPath
readonly appPath: string;
Methods
modifyRunnerOpts()
modifyRunnerOpts(hook): void;
Defined in: index.ts:49
Experimental
在 runner 启动前修改项目配置;Taro 会 await 它。
Parameters
| Parameter | Type |
|---|---|
hook | (args) => void |
Returns
void