@itsprakash87/packer

1.0.0 • Public • Published

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

Options Use
--output or -o Output directory.
--publicPath Public path of bundled assets.
--babelrc Path to custom babel configuration file. Packer will use that config to parse js files.
--template Path to HTML template. Packer will inject the js and css bundle urls and create a new HTML file in output directory.
--nominify Skip minifying js files.

Example

Command line example

Command line

Lazy loading example

Lazy loading

Readme

Keywords

none

Package Sidebar

Install

npm i @itsprakash87/packer

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

58.2 kB

Total Files

47

Last publish

Collaborators

  • itsprakash87