JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 190
  • Score
    100M100P100Q112952F
  • License MIT

Serverless Optimizer Plugin - Significantly reduces Lambda file size and improves performance

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 your s-component.json or s-function.json add an optimize property.
"custom": {
    "optimize": true
}
  • Adding the custom.optimize property in s-component.json applies the optimization setting to ALL functions in that component. Adding the custom.optimize property to s-function.json applies the optimization setting to ONLY that specific function. You can use custom.optimize in both places. The custom.optimize setting in s-function.json will override the setting in s-component.json.

We're currently working on adding support for Babelify and Typsecript. Check back for updates!