You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config/hooks.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,9 @@ In Electron Forge, hooks are asynchronous callback functions that allow you to i
8
8
9
9
Each hook function comes with the Forge configuration object as a first parameter.
10
10
11
-
Any writes to `stdout` and `stderr` from within a hook function will be printed in the console after the Forge build completes.
11
+
{% hint style="warning" %}
12
+
Any writes to `stdout` and `stderr` from within a hook function will be printed in the console after the Forge build completes, and will only be visible with the `DEBUG` or `CI` environment variables set to some truthy value.
13
+
{% endhint %}
12
14
13
15
{% hint style="info" %}
14
16
To read more about the different stages in Forge's build process, please refer to the [build-lifecycle.md](../core-concepts/build-lifecycle.md"mention") documentation.
@@ -21,7 +23,7 @@ In Electron Forge, most hooks are **simple hooks**, which perform side effects d
`postMake()`is called after Forge's **`make`** step has successfully completed.
191
193
192
-
It is passed an array of [`MakeResult`](https://js.electronforge.io/interfaces/\_electron\_forge\_shared\_types.ForgeMakeResult.html) objects that are output from the `make` step. If you wish to mutate the array of Make results, you can return a new array of [`MakeResult`](https://js.electronforge.io/interfaces/\_electron\_forge\_shared\_types.ForgeMakeResult.html) objects that Electron Forge can use for future steps.
194
+
It is passed an array of [`MakeResult`](https://js.electronforge.io/interfaces/_electron_forge_shared_types.ForgeMakeResult.html) objects that are output from the `make` step. If you wish to mutate the array of Make results, you can return a new array of [`MakeResult`](https://js.electronforge.io/interfaces/_electron_forge_shared_types.ForgeMakeResult.html) objects that Electron Forge can use for future steps.
0 commit comments