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
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
Copy file name to clipboardexpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,18 @@ Serverless offline plugin can invoke shell scripts when a simulated server has b
274
274
This plugin simulates API Gateway for many practical purposes, good enough for development - but is not a perfect simulator.
275
275
Specifically, Lambda currently runs on Node v4.3.2 and v6.10.0, whereas *Offline* runs on your own runtime where no memory limits are enforced.
276
276
277
+
## Usage with serverless-offline and serverless-webpack plugin
278
+
279
+
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 ressources.
280
+
281
+
Add plugins to your `serverless.yml` file:
282
+
```yaml
283
+
plugins:
284
+
- serverless-webpack
285
+
- serverless-dynamodb-local
286
+
- serverless-offline #serverless-offline needs to be last in the list
0 commit comments