Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-parcel

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-parcel

A Serverless plugin to bundle your functions and assets with Parcel Bundler

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by16.67%
Maintainers
1
Weekly downloads
 
Created
Source

serverless-parcel

Serverless plugin for zero-config parcel bundler support.

Install

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 if you want to get fancy, here ya go:

custom:
  parcel:
    ## options for lambda functions
    options:
      ## defaults
      target: node
      cache: false
      bundleNodeModules: true
      outDir: autogenerated - you can't change this

    ## non-lambda entries you'd like to build
    entries:
      # an array of bundler options with an entry file
      - 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 heavily 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:

Keywords

FAQs

Package last updated on 25 Nov 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc