0.3.1 • Published 5 years ago

bundle-bundler v0.3.1

Weekly downloads
147
License
MIT
Repository
github
Last release
5 years ago

Bundle Bundler

Build Status Coverage Status

The library builds Nodejs applications and creates a zip bundle.

This will bundle the application for production use like npm install --production would.

Usage

import Bundler from 'bundle-bundler';

const bundler = new Bundler({
  rootDir: process.cwd(),
  babel: true,
  sourceMaps: true,
  uglify: false, // not currently working as expected
  logger: console,
});

const config = {
  output: 'application-bundle.zip',
  include: [ 'src/**/*' ],
  exclude: [],
};

await bundler.bundle(config);

License

MIT

Contributions

This work is based on Serverless Build Plugin by nfour.