npm.io
0.2.3 • Published 9 years agoCLI

auto-pack

Licence
MIT
Version
0.2.3
Deps
7
Vulns
0
Weekly
0

auto-pack

Webpack bundles. Polyfilled JS. No configuration.
This is a simple webpack wrapper. There is no config file required. It's just a node executable. Auto-pack runs webpack with the babel-loader, with babel-preset-latest and babel-plugin-transform-runtime.

Install:
yarn add auto-pack
or
npm install auto-pack --save


Run the bundler from an npm script:

"scripts": {
  "js": "auto-pack ./src/main.js -o ./dist"
}

Options:

  • --out, -o: directory to write your bundled files to
  • --resolve, -r: list of directories to resolve imports
  • --watch, -w: watch mode

This package is for simple JavaScript compilation targeted at browsers. It's intended as a convenience and simplicity. If you need more options, just use webpack directly. :)

Keywords