From d24b1f17f63d69f59489f33c762425e8b8b33bac Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sun, 8 Jan 2017 20:33:45 -0800 Subject: [PATCH 1/2] Update README.md Hey just a little clarification for us `webpack --watch` fans. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d452a13..e068e5a 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Once the build finishes, a child process is spawned firing both a python and nod ### API * `onBuildStart`: array of scripts to execute on the initial build. **Default: [ ]** * `onBuildEnd`: array of scripts to execute after files are emitted at the end of the compilation. **Default: [ ]** -* `onBuildExit`: array of scripts to execute after webpack's process is complete. **Default: [ ]** +* `onBuildExit`: array of scripts to execute after webpack's process is complete. *Note: this event also fires in `webpack --watch` when webpack has finished updating the bundle* **Default: [ ]** * `dev`: switch for development environments. This causes scripts to execute once. Useful for running HMR on webpack-dev-server or webpack watch mode. **Default: true** * `safe`: switches script execution process from spawn to exec. If running into problems with spawn, turn this setting on. **Default: false** * `verbose`: **DEPRECATED** enable for verbose output. **Default: false** From e8908e1653dd2ef01774febdcc5aac9bb9e22ff9 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sun, 8 Jan 2017 20:35:17 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e068e5a..007f559 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ Once the build finishes, a child process is spawned firing both a python and nod ### API * `onBuildStart`: array of scripts to execute on the initial build. **Default: [ ]** * `onBuildEnd`: array of scripts to execute after files are emitted at the end of the compilation. **Default: [ ]** -* `onBuildExit`: array of scripts to execute after webpack's process is complete. *Note: this event also fires in `webpack --watch` when webpack has finished updating the bundle* **Default: [ ]** +* `onBuildExit`: array of scripts to execute after webpack's process is complete. *Note: this event also fires in `webpack --watch` when webpack has finished updating the bundle.* **Default: [ ]** * `dev`: switch for development environments. This causes scripts to execute once. Useful for running HMR on webpack-dev-server or webpack watch mode. **Default: true** * `safe`: switches script execution process from spawn to exec. If running into problems with spawn, turn this setting on. **Default: false** * `verbose`: **DEPRECATED** enable for verbose output. **Default: false**