You've already forked serverless-webpack
mirror of
https://github.com/encounter/serverless-webpack.git
synced 2026-03-30 11:37:58 -07:00
be20b6db5e
* Updated TypeScript example * Updated offline example * Updated multiple statically example * Updated include npm example * Update babel example * Updated dynamic example * Updated babel multi static example
33 lines
790 B
YAML
33 lines
790 B
YAML
service: serverless-webpack-multiple-entries-example
|
|
|
|
# Add the serverless-webpack plugin
|
|
plugins:
|
|
- serverless-webpack
|
|
|
|
provider:
|
|
name: aws
|
|
runtime: nodejs6.10
|
|
|
|
custom:
|
|
webpackIncludeModules: true # enable auto including modules
|
|
# You also can forcefully include or exclude modules by defining it this way.
|
|
# Be aware that this only should be done for packages that webpack does not
|
|
# correctly detect as dependencies.
|
|
#
|
|
# webpackIncludeModules:
|
|
# forceInclude:
|
|
# - myModule1
|
|
# forceExclude:
|
|
# - myModule2
|
|
#
|
|
# This can be used to exclude aws-sdk even if it is present in the production dependencies
|
|
|
|
functions:
|
|
first:
|
|
handler: handler.hello
|
|
events:
|
|
- http:
|
|
method: GET
|
|
path: first
|
|
integration: lambda
|