File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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
427440Or to run a function every time the source files change use the `--watch` option
You can’t perform that action at this time.
0 commit comments