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