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
|**`on(NameOfEvent)`**|`{Array}`|`[]`| Array of scripts to execute on the event. ||
47
-
|**`bail`**|`{Boolean}`|`compiler.options.bail`| Report the first error as a hard error instead of tolerating it. |
48
-
|**`dev`**|`{Boolean}`|`true`| Switch for development environments. This causes scripts to execute once. Useful for running HMR on webpack-dev-server or webpack watch mode. |
|**`on(NameOfHook)`**|`{Array}`|`[]`| Array of commands to execute on the hook. ||
47
+
|**`bail`**|`{Boolean}`|`compiler.options.bail`| Report the first error as a hard error instead of tolerating it. |
48
+
|**`dev`**|`{Boolean}`|`true`| Switch for development environments. This causes scripts to execute once. Useful for running HMR on webpack-dev-server or webpack watch mode. |
50
49
51
-
### `on(NameOfEvent)`
50
+
### `on(NameOfHook)`
52
51
53
-
List of [events](https://webpack.js.org/api/compiler-hooks/).
54
-
Name of event contain - `on` + event name (first character in upper case).
52
+
List of [hooks](https://webpack.js.org/api/compiler-hooks/).
53
+
The name of hook contains: `on` + hook name (first character in upper case).
55
54
Examples: `onBeforeRun`, `onRun`, `onWatchRun`, `onCompile` and etc.
0 commit comments