A simple module bundler
Last updated 9 months ago by itsprakash87 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @itsprakash87/packer 
SYNC missed versions from official npm registry.


A simple no configuration module bundler.

Supported Features

  • Support js, css, image and font files.
  • Dynamically loading the js and css.
  • Code splitting.
  • Default support for jsx syntax.
  • Bundle name with bundle hash to support caching.
  • Minified js files.


npm install -g @itsprakash87/packer


packer ./main.js -o ./build

CLI Options

--output or -oOutput directory.
--publicPathPublic path of bundled assets.
--babelrcPath to custom babel configuration file. Packer will use that config to parse js files.
--templatePath to HTML template. Packer will inject the js and css bundle urls and create a new HTML file in output directory.
--nominifySkip minifying js files.


Command line example

Command line

Lazy loading example

Lazy loading

Current Tags

  • 1.0.0                                ...           latest (9 months ago)

1 Versions

  • 1.0.0                                ...           9 months ago
Maintainers (1)
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 2
Last Month 0
Dependencies (18)
Dev Dependencies (2)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |