You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -175,6 +175,18 @@ Options are:
175
175
- `--function`or `-f` (required) is the name of the function to run
176
176
- `--path`or `-p` (optional) is a JSON file path used as the function input event
177
177
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
0 commit comments