Skip to content

Commit 37f9c5a

Browse files
committed
docs(readme): update hook documentation
as per ionic-team#1989 (comment)
1 parent 1374d86 commit 37f9c5a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,11 @@ CLI hooks are how you can run scripts during CLI events, such as "watch" and
152152
"build". To hook into the CLI, use the following [npm
153153
scripts](https://docs.npmjs.com/misc/scripts) in your `package.json` file:
154154

155-
| npm script | description | commands |
156-
|----------------------|-------------------------------------------------------------------|-----------------------------------------------------------------------------|
157-
| `ionic:watch:before` | Runs **before** the file watcher activates during a "watch" event | `ionic serve`, `ionic cordova run`, `ionic cordova emulate` |
158-
| `ionic:build:before` | Runs **before** the Ionic "build" event starts. | `ionic build`, `ionic upload`, `ionic package build`, `ionic cordova build` |
159-
| `ionic:build:after` | Runs **after** the Ionic "build" event finishes. | `ionic build`, `ionic upload`, `ionic package build`, `ionic cordova build` |
155+
| npm script | description | commands |
156+
|----------------------|-------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
157+
| `ionic:watch:before` | Runs **before** the file watcher activates during a "watch" event | `ionic serve`, `ionic cordova run -l`, `ionic cordova emulate -l` |
158+
| `ionic:build:before` | Runs **before** the Ionic "build" event starts. | `ionic build`, `ionic upload`, `ionic package build`, `ionic cordova build`, `ionic cordova run`, `ionic cordova emulate` |
159+
| `ionic:build:after` | Runs **after** the Ionic "build" event finishes. | `ionic build`, `ionic upload`, `ionic package build`, `ionic cordova build`, `ionic cordova run`, `ionic cordova emulate` |
160160

161161
### Example
162162

0 commit comments

Comments
 (0)