serverless-asset-pipeline

1.0.2 • Public • Published

serverless-asset-pipeline

A serverless plugin to minify or copy (passthrough) static assets.

Config

declare plugin in serverless.yml, and add a config like

custom:
  serverless-asset-pipeline:
      minify:
        stages: ['dev'] # optional, overrides the default ['staging', 'prod]
      tasks: # mandatory, tells plugin what & where
        generator: # name of the function 
          src: generator/assets/** # glob to asset files
          dest: bin/generator/assets/ # where to output them
        # add other functions below

Dependencies

see package.json

Package Sidebar

Install

npm i serverless-asset-pipeline

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

6.5 kB

Total Files

4

Last publish

Collaborators

  • swaven