JavaScript HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
README.md
config.png
index.html
index.js
package.json
webpack.config.js

README.md

webpack-aws-lambda

AWS Lambda that runs webpack and output the bundle.js file

Lambda preparation process

First thing after cloning the project you need to run npm update in order to get the projet dependencies.
Remember that all the npm modules needs to be relative to the project and not global. After that you will be able to package your projects (only the files inside the project folder, not the parent folder) and upload to AWS Lambda.

AWS Lambda configuration

alt text

Live example

At this link you can find the Webpack bundle output returned from a Lambda exposed via API Gateway

it takes a while to get the response (around 15s when Lambda is cold)