vue-cli-plugin-netlify-lambda-webpack

0.1.0 • Public • Published

vue-cli-plugin-netlify-lambda

netlify-lambda plugin for vue-cli

Modified fork that adds the ability to add webpack configuration.

Sets up netlify-lambda for vue-cli projects to build and serve AWS lambda functions.

Installing in an Already Created Project

vue add netlify-lambda

Note, until this PR gets merged into vue-cli, this will also modify binaries in the project in a way that breaks their encoding, so only commit the relevant files

Usage

This ads a netlify.toml and a src/lambda folder with an example hello.js lambda function.

Any js file added in src/lambda will be built as a lambda. It will be compiled with webpack and babel and any imports will be bundled (no native dependencies, though).

When deployed to Netlify, the AWS lambda's are reachable under /.netlify/functions/:name - ie, the hello.js Lambda will be available under /.netlify/functions/hello.

The plugin also sets up a proxy and runs the Lambdas locally, to simplify local development.

Readme

Keywords

none

Package Sidebar

Install

npm i vue-cli-plugin-netlify-lambda-webpack

Weekly Downloads

16

Version

0.1.0

License

MIT

Unpacked Size

123 kB

Total Files

8

Last publish

Collaborators

  • jmotes