You've already forked serverless-webpack
mirror of
https://github.com/encounter/serverless-webpack.git
synced 2026-03-30 11:37:58 -07:00
36 lines
649 B
YAML
36 lines
649 B
YAML
service: babel-webpack-4-example
|
|
|
|
# Add the serverless-webpack plugin
|
|
plugins:
|
|
- serverless-webpack
|
|
- serverless-offline
|
|
|
|
provider:
|
|
name: aws
|
|
runtime: nodejs6.10
|
|
stage: test
|
|
|
|
custom:
|
|
webpack:
|
|
webpackConfig: ./webpack.config.js
|
|
includeModules: true
|
|
# If you use Yarn instead of NPM in your environment, uncomment the following line.
|
|
# packager: yarn
|
|
|
|
package:
|
|
individually: true
|
|
|
|
functions:
|
|
first:
|
|
handler: handlers/first.hello
|
|
events:
|
|
- http:
|
|
method: get
|
|
path: first
|
|
second:
|
|
handler: handlers/second.hello
|
|
events:
|
|
- http:
|
|
method: get
|
|
path: second
|