Home > @rushstack/heft > IHeftPlugin > apply
IHeftPlugin.apply() method
Apply the plugin to the session. Plugins are expected to hook into session hooks to provide plugin implementation. The apply(...)
method is called once per phase.
Signature:
apply(session: TSession, heftConfiguration: HeftConfiguration, pluginOptions?: TOptions): void;
Parameters
Parameter | Type | Description |
---|---|---|
session | TSession | The session to apply the plugin to. |
heftConfiguration | HeftConfiguration | The Heft configuration. |
pluginOptions | TOptions | (Optional) Options for the plugin, specified in heft.json. |
Returns:
void