Socket
Socket
Sign inDemoInstall

serverless-single

Package Overview
Dependencies
17
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    serverless-single

Serverless plugin


Version published
Weekly downloads
0
Maintainers
1
Install size
929 kB
Created
Weekly downloads
 

Readme

Source

#Serverless Single Plugin serverless

Removes unnecessary folders, or unused lambda functions in your zip file, thus reducing zip file size.

##Install

npm install serverless-single --save

Add the plugin to the plugins array in your Serverless Project's s-project.json, like this:

"plugins": [
    "serverless-single"
  ]

In the custom property of your s-function.json add a single property. include propery is a list of folder name you want to exclude from removing, or include it your zip file

"custom": {
    "single": {
      "include": [
        "node_modules",
        "lib",
        "_auth"
      ]
    }
  },

Keywords

FAQs

Last updated on 21 Jul 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc