Skip to content

Example Azure Function that uses Webpack with the Serverless Framework

License

Notifications You must be signed in to change notification settings

pjlittle/azure-func-webpack

Repository files navigation

azure-func-webpack

Example Azure Function (JavaScript) that uses Webpack 4.x with the Serverless Framework

Two dependencies (lodash and @azure/ms-rest-nodeauth) are referenced in an Azure Function handler (randomNumber.js). Webpack is used to create self-contained function bundles, without packaging and deploying node_modules/.

Package Size Comparison

Regular Deployment Webpack Deployment
6.3MB 365KB

for these two dependencies, Webpack is producting deployment zip packages that are ~94% smaller.

About

Example Azure Function that uses Webpack with the Serverless Framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published