rogersgt / serverless-frontend-plugin

Serverless plugin to automate packaging and deploying a frontend UI in AWS Cloudfront and S3
MIT License
6 stars 4 forks source link

serverless-frontend-plugin

Package and deploy any frontend with your serverless backend.

Installation

npm install --save-dev serverless-frontend-plugin

Implementation

Options

Offline Integration

This plugin seamlessly integrates with serverless-offline. Simply Add an offline configuration under custom.serverless-frontend-plugin in your serverless.yml. See offline options above.

Examples

See the test configs on Github for working examples. Just be sure to replace the following section in the serverless.yml:

# Replace this
plugins:
  - ../../../index.js

# With this
plugins:
- serverless-frontend-plugin

Serverless Framework Version Compatibility

serverless-frontend-plugin serverless
1.x 2.x
2.x 3.x