Skip to content

Commit

Permalink
How to work with a full stack plugins
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Gregoirevda authored Jun 9, 2017
1 parent 8b8f22f commit 21aa2bf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,17 @@ Make sure that `serverless-dynamodb-local` is above `serverless-offline` so it w

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

### Using with serverless-offline and serverless-webpack plugin
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.

Add plugins to your `serverless.yml` file:
```yaml
plugins:
- serverless-webpack
- serverless-dynamodb-local
- serverless-offline #serverless-offline needs to be last in the list
```
## Reference Project
* [serverless-react-boilerplate](https://github.com/99xt/serverless-react-boilerplate)
Expand Down

0 comments on commit 21aa2bf

Please sign in to comment.