Skip to content

Commit 21aa2bf

Browse files
authored
How to work with a full stack plugins
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 8b8f22f commit 21aa2bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,17 @@ Make sure that `serverless-dynamodb-local` is above `serverless-offline` so it w
176176

177177
Now your local DynamoDB database will be automatically started before running `serverless offline`.
178178

179+
### Using with serverless-offline and serverless-webpack plugin
180+
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 both ressources.
181+
182+
Add plugins to your `serverless.yml` file:
183+
```yaml
184+
plugins:
185+
- serverless-webpack
186+
- serverless-dynamodb-local
187+
- serverless-offline #serverless-offline needs to be last in the list
188+
```
189+
179190
## Reference Project
180191
* [serverless-react-boilerplate](https://github.com/99xt/serverless-react-boilerplate)
181192

0 commit comments

Comments
 (0)