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

packer

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.

Install

npm install -g @itsprakash87/packer

Use

packer ./main.js -o ./build

CLI Options

OptionsUse
--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.

Example

Command line example

Command line

Lazy loading example

Lazy loading

Current Tags

  • 1.0.0                                ...           latest (7 months ago)

1 Versions

  • 1.0.0                                ...           7 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 6
Dependencies (18)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2018 © taobao.org |