Skip to content

Commit 14bfcd0

Browse files
authored
Merge pull request dherault#253 from Gregoirevda/patch-1
Create README.md
2 parents 47cd053 + 71f48fa commit 14bfcd0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,18 @@ Serverless offline plugin can invoke shell scripts when a simulated server has b
274274
This plugin simulates API Gateway for many practical purposes, good enough for development - but is not a perfect simulator.
275275
Specifically, Lambda currently runs on Node v4.3.2 and v6.10.0, whereas *Offline* runs on your own runtime where no memory limits are enforced.
276276

277+
## Usage with serverless-offline and serverless-webpack plugin
278+
279+
Run `serverless offline start`. In comparison with `serverless offline`, the `start` command will fire an `init` and a `end` lifecycle hook which is needed for serverless-offline and serverless-dynamodb-local to switch off ressources.
280+
281+
Add plugins to your `serverless.yml` file:
282+
```yaml
283+
plugins:
284+
- serverless-webpack
285+
- serverless-dynamodb-local
286+
- serverless-offline #serverless-offline needs to be last in the list
287+
```
288+
277289

278290
## Credits and inspiration
279291

0 commit comments

Comments
 (0)