bundle-bundler

0.3.1 • Public • Published

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.

/bundle-bundler/

    Package Sidebar

    Install

    npm i bundle-bundler

    Weekly Downloads

    63

    Version

    0.3.1

    License

    MIT

    Unpacked Size

    27 kB

    Total Files

    9

    Last publish

    Collaborators

    • rawphp