Skip to content

itsprakash87/packer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple module bundler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages