Painlessly deploy serverless projects with only the required dependencies.
Easily include only required code your serverless package.
This plugin analyses all handlers in your
serverless.yml configuration and modifies serverless includes/excludes options accordingly.
First install the plugin via NPM.
npm install serverless-plugin-inject-dependencies --save-dev
Then include the plugin within your serverless.yml config.
plugins: - serverless-plugin-inject-dependencies