Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
This is part off this change in serverless-webpack: serverless-heaven#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 fa63795 commit da5fb7c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,18 @@ Options are:
- `--function` or `-f` (required) is the name of the function to run
- `--path` or `-p` (optional) is a JSON file path used as the function input event

### 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
```
### Bundle with webpack
To just bundle and see the output result use:
Expand Down

0 comments on commit da5fb7c

Please sign in to comment.