π§ life cycle
This page contains 4 configuration items, sourced from UserDefinedOptions.
Configuration overviewβ
| Configuration item | Type | Default value | Description |
|---|---|---|---|
| onLoad | (() => void) | β | Triggered when the plug-in apply is initially called. |
| onStart | (() => void) | β | Triggered before starting processing. |
| onUpdate | (filename: string, oldVal: string, newVal: string) => void | β | Triggered after matching and modifying the file. |
| onEnd | (() => void) | β | Triggered when processing ends. |
Detailed descriptionβ
onLoadβ
Optional | Type:
(() => void)
Fired when the plugin apply is initially called.
returnβ
void
onStartβ
Optional | Type:
(() => void)
Triggered before starting processing.
returnβ
void
onUpdateβ
Optional | Type:
(filename: string, oldVal: string, newVal: string) => void
Triggered after a file is matched and modified.
Parametersβ
filenameβ
string
oldValβ
string
newValβ
string
returnβ
void
onEndβ
Optional | Type:
(() => void)
Fires when processing ends.
returnβ
void