# auto-pack

> Zero config webpack CLI.

Latest version **0.2.3** (published 2016-12-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install auto-pack
pnpm add auto-pack
yarn add auto-pack
bun add auto-pack
```

Provides the command `auto-pack`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2016-12-14 |
| First published | 2016-12-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nathan Jacobs |
| Maintainers | iamnathanj |
| Keywords | easy, webpack, babel, bundle, browser, cli |

## Links

- npm: https://www.npmjs.com/package/auto-pack
- npm.io page: https://npm.io/package/auto-pack

## Dependencies (7)

- [webpack](https://npm.io/package/webpack.md) ^1.14.0
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.7
- [babel-core](https://npm.io/package/babel-core.md) ^6.20.0
- [babel-loader](https://npm.io/package/babel-loader.md) ^6.2.9
- [command-line-args](https://npm.io/package/command-line-args.md) ^3.0.4
- [babel-preset-latest](https://npm.io/package/babel-preset-latest.md) ^6.16.0
- [babel-plugin-transform-runtime](https://npm.io/package/babel-plugin-transform-runtime.md) ^6.15.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 0.2.3 (latest) — 2016-12-14
- 0.2.2 — 2016-12-14
- 0.2.1 — 2016-12-14
- 0.2.0 — 2016-12-13
- 0.1.2 — 2016-12-13
- 0.1.1 — 2016-12-13
- 0.1.0 — 2016-12-13

## 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`  
or  
`npm install auto-pack --save`

---

**Run the bundler from an npm script:**
```json
"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. :)

---
_Source: https://npm.io/package/auto-pack · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
