Package Exports
- serverless-optimizer-plugin
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (serverless-optimizer-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Serverless Optimizer Plugin
Browserifies, minifies your Serverless Node.js Functions on deployment, and more!
Reducing the file size of your AWS Lambda Functions allows AWS to provision them more quickly, speeding up the response time of your Lambdas. Smaller Lambda sizes also helps you develop faster because you can upload them faster. This Severless Plugin is absolutely recommended for every project including Lambdas with Node.js.
Note: Requires Serverless v0.1.0 or higher.
###Setup
- Install via npm in the root of your Serverless Project:
npm install serverless-optimizer-plugin --save
- In the
custom
property of either yours-component.json
ors-function.json
add an optimize property.
"custom": {
"optimize": true
}
- Adding the
custom.optimize
property ins-component.json
applies the optimization setting to ALL functions in that component. Adding thecustom.optimize
property tos-function.json
applies the optimization setting to ONLY that specific function. You can usecustom.optimize
in both places. Thecustom.optimize
setting ins-function.json
will override the setting ins-component.json
.
We're currently working on adding support for Babelify and Typsecript. Check back for updates!