Gist bae3b305134e90c96401e1f54a8c23e3
✓ Published0🌍 Public
Aandresmijares
Last edited Mar 11, 2019
Created on Mar 11, 2019
This example shows a serverless webpack configuration for deploying a Node.js application. It demonstrates how to bundle JavaScript code with the Serverless Webpack plugin, targeting AWS Lambda’s Node runtime. The configuration uses `serverless-webpack` to generate entry points, sets the build mode based on local development, and applies `webpack-node-externals` to exclude Node modules. It also ignores the `/opt` directory and outputs CommonJS2 bundles to the `.webpack` folder, with source maps for debugging.
AI-generated description