auto-pack
v0.2.3
Published
Zero config webpack CLI.
Downloads
9
Maintainers
Readme
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
ornpm 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. :)