# www-bundle

> Opinionated asset pipeline for the frontend

Latest version **2.2.2** (published 2015-10-02) · 0 weekly downloads

## Install

```sh
npm install www-bundle
pnpm add www-bundle
yarn add www-bundle
bun add www-bundle
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.2 |
| Published | 2015-10-02 |
| First published | 2015-06-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 21 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Matthew Mueller |
| Maintainers | mattmueller |

## Links

- npm: https://www.npmjs.com/package/www-bundle
- Repository: https://github.com/lapwinglabs/www-bundle
- Homepage: https://github.com/lapwinglabs/www-bundle#readme
- Issues: https://github.com/lapwinglabs/www-bundle/issues
- npm.io page: https://npm.io/package/www-bundle

## Dependencies (21)

- [batch](https://npm.io/package/batch.md) ^0.5.3
- [debug](https://npm.io/package/debug.md) ^2.2.0
- [envify](https://npm.io/package/envify.md) 3.4.0
- [sliced](https://npm.io/package/sliced.md) ^1.0.1
- [cssnext](https://npm.io/package/cssnext.md) 1.8.4
- [postcss](https://npm.io/package/postcss.md) 5.0.8
- [babelify](https://npm.io/package/babelify.md) 6.3.0
- [watchify](https://npm.io/package/watchify.md) ^3.4.0
- [browserify](https://npm.io/package/browserify.md) 11.2.0
- [koa-bundle](https://npm.io/package/koa-bundle.md) 2.0.0
- [postcss-url](https://npm.io/package/postcss-url.md) 5.0.0
- [object-assign](https://npm.io/package/object-assign.md) ^4.0.1
- [postcss-import](https://npm.io/package/postcss-import.md) 7.0.0
- [postcss-nested](https://npm.io/package/postcss-nested.md) 1.0.0
- [cached-readfile](https://npm.io/package/cached-readfile.md) 0.0.1
- [postcss-clearfix](https://npm.io/package/postcss-clearfix.md) 0.2.0
- [postcss-fontpath](https://npm.io/package/postcss-fontpath.md) 0.2.0
- [browserify-markdown](https://npm.io/package/browserify-markdown.md) 1.0.0
- [postcss-simple-vars](https://npm.io/package/postcss-simple-vars.md) 1.0.1
- [postcss-simple-extend](https://npm.io/package/postcss-simple-extend.md) ^1.0.0
- [browserify-string-to-js](https://npm.io/package/browserify-string-to-js.md) ^1.0.1

## Recent versions

- 2.2.2 (latest) — 2015-10-02
- 2.2.1 — 2015-10-02
- 2.2.0 — 2015-10-02
- 2.1.1 — 2015-10-01
- 2.1.0 — 2015-09-30
- 2.0.0 — 2015-09-23
- 1.0.12 — 2015-09-16
- 1.0.11 — 2015-09-01
- 1.0.10 — 2015-08-21
- 1.0.9 — 2015-08-21
- 1.0.8 — 2015-08-13
- 1.0.7 — 2015-07-23
- 1.0.6 — 2015-07-20
- 1.0.5 — 2015-07-20
- 1.0.4 — 2015-07-03
- … 6 more at https://npm.io/package/www-bundle/versions

## README

# www-bundle

  **Deprecated in favor of [webpack-www-bundle](http://github.com/lapwinglabs/webpack-www-bundle)**

  Opinionated asset pipeline for the koa front-end servers

## Installation

```js
npm install www-bundle
```

## Usage

```js
var bundle = require('www-bundle')
var join = require('path').join

// middleware
koa.use(bundle({ root: __dirname }))

// all the assets your frontend should listen to
bundle('react') // supports "browser" field in package.json
bundle('home.js')
bundle('home.css')
```

See the [react example](example/react) for the complete server implementation

## Stack

- [koa-bundle](https://github.com/koajs/bundle) (automatic etag, compression, gzip, sourcemap support)
- browserify ([babelify](https://github.com/babel/babelify), [envify](https://github.com/hughsk/envify), externalizes big assets like react and D3)
- postCSS ([postcss-import](https://github.com/postcss/postcss-import), [cssnext](https://github.com/cssnext/cssnext), [postcss-nested](https://github.com/postcss/postcss-nested))

This allows you to support both importing assets using CSS and requiring assets using JS.

## License

MIT

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