Skip to content

Commit 71f48fa

Browse files
authored
Create README.md
This is part off this change in serverless-webpack: serverless-heaven/serverless-webpack#131 Explain how to work with the serverless-offline, serverless-webpack and serverless-dynamodb-local
1 parent 47cd053 commit 71f48fa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
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)