1.0.0 • Published 7 years ago

lambda-webpack-zip v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

lambda-webpack-zip

npm Version Build Status

Build for aws-lambda, webpack your entry, then zip it

Install

npm install lambda-webpack-zip
yarn add lambda-webpack-zip

Features

  • customized webpack configs
  • create tmp file for webpack built code and zip file, ensure them to be deleted after process exit
  • Typescript support

Usage

const {pack} = require("lambda-webpack-zip");
pack({
  // webpack configs
  entry: "/source/code/path",
  // Specify the output file containing our bundled code
  output: {
    filename: "index.js"
  }
})
.then(zipFilePath => {
  // upload zipFilePath
});

Powered By Canner

Canner