Skip to content

Commit f215f49

Browse files
authored
Merge pull request #132 from Gregoirevda/patch-2
Create README.md
2 parents 7893b9b + 79db747 commit f215f49

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
@@ -175,6 +175,18 @@ Options are:
175175
- `--function` or `-f` (required) is the name of the function to run
176176
- `--path` or `-p` (optional) is a JSON file path used as the function input event
177177

178+
### Using with serverless-offline and serverless-webpack plugin
179+
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 resources.
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+
178190
### Bundle with webpack
179191

180192
To just bundle and see the output result use:

0 commit comments

Comments
 (0)