serverless-parcel
Serverless plugin for zero-config parcel bundler support.
Install
you know this drill already... right?
yarn add serverless-parcel --dev
Add the plugin to your serverless.yml
:
plugins:
- serverless-parcel
Configure
None required! By default, parcel will build your lambda functions with parcel... but I'm sure that's too boring for you, so here ya go:
custom:
parcel:
options:
target: node
cache: false
bundleNodeModules: true
outDir: autogenerated - you can't change this
entries:
- file: src/index.html
minify: true
target: browser
- file: src/admin.html
minify: false
sourceMaps: true
A full list of options can be found on parcel's api docs
Shout Out
This project was heavliy inspired by serverless-plugin-typescript and serverless-webpack. Both are epic projects and I hope this projects grows up to be like them one day. :tada: