Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 609 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 609 Bytes

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');