Skip to content

Node Bundle Generator is a super simple way to generate webpack bundles.

Notifications You must be signed in to change notification settings

idearium/node-bundle-generator

Repository files navigation

node-bundle-generator

Node Bundle Generator is a super simple way to generate webpack bundles.

Usage

To use this repo run Yarn to install the necessary dependencies. Then, update the following:

  • index.js with your own bundle code.
  • webpack.config.js with your preferred entry bundle key.

Run yarn build and a file will be generated for you in the dist directory.

You can now copy this file into your own project.

Example

// @index.js
export { format as formatDate } from 'date-fns';

// @dist/bundle.[hash].js
...

// Client side
formatDate(new Date(), 'hh:mm');

About

Node Bundle Generator is a super simple way to generate webpack bundles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published