Skip to content

Commit 3e4cd0b

Browse files
author
Frank Schmid
committed
Added documentation
1 parent b43a757 commit 3e4cd0b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,19 @@ All options that are supported by invoke local can be used as usual:
422422

423423
> :exclamation: The old `webpack invoke` command has been disabled.
424424

425+
#### Run a function with an existing compiled output (--no-build)
426+
427+
On CI systems it is likely that you'll run multiple integration tests with `invoke local`
428+
sequentially. To improve this, you can do one compile and run multiple invokes on the
429+
compiled output - it is not necessary to compile again before each and every invoke.
430+
431+
```bash
432+
$ serverless webpack
433+
$ serverless invoke local --function <function-name-1> --no-build
434+
$ serverless invoke local --function <function-name-2> --no-build
435+
...
436+
```
437+
425438
### Run a function locally on source changes
426439

427440
Or to run a function every time the source files change use the `--watch` option

0 commit comments

Comments
 (0)