serve static file throught serverless-offline-plugin
npm install serverless-static```
$ npm install serverless-static --save-dev`
> or, if serverless-offline is not already installed`
$ npm install serverless-static serverless-offline --save-dev2. add it to your serverless.yml file
Then inside your project's serverless.yml file add following entry to the plugins section: serverless-static. If there is no plugin section you will need to add it to the file.
It should look something like this:
`YAML`
plugins:
- serverless-offline
- serverless-static
YAML
custom:
static:
path: ./public # select the folder you want to serve
port: 8000 # select a specific port this will overide default behavior
it will serve the folder ./public
it will serve it throught localhost:8000
``- [ ] support for serving multiple directories
- [ ] deploy / sync folder and bucket