Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 

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)

You can’t perform that action at this time.