# steal-bundler

> Bundle assets along with a steal project

Latest version **0.3.6** (published 2018-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install steal-bundler
pnpm add steal-bundler
yarn add steal-bundler
bun add steal-bundler
```

## 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.3.6 |
| Published | 2018-01-11 |
| First published | 2015-07-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Bitovi |
| Maintainers | m-mujica, nlundquist |
| Keywords | StealTools |

## Links

- npm: https://www.npmjs.com/package/steal-bundler
- Repository: https://github.com/stealjs/steal-bundler
- Homepage: https://github.com/stealjs/steal-bundler#readme
- Issues: https://github.com/stealjs/steal-bundler/issues
- npm.io page: https://npm.io/package/steal-bundler

## Dependencies (5)

- [glob](https://npm.io/package/glob.md) ^7.1.2
- [fs-extra](https://npm.io/package/fs-extra.md) ^4.0.2
- [minimatch](https://npm.io/package/minimatch.md) ^3.0.2
- [pdenodeify](https://npm.io/package/pdenodeify.md) ^0.1.0
- [lodash.uniq](https://npm.io/package/lodash.uniq.md) ^4.5.0

## Recent versions

- 0.3.6 (latest) — 2018-01-11
- 0.3.5 — 2017-10-05
- 0.3.4 — 2017-10-04
- 0.3.2 — 2017-04-19
- 0.3.1 — 2016-12-16
- 0.3.0 — 2016-11-09
- 0.2.8 — 2016-08-16
- 0.2.7 — 2016-07-25
- 0.2.6 — 2016-01-29
- 0.2.5 — 2016-01-07
- 0.2.4 — 2016-01-07
- 0.2.3 — 2015-09-24
- 0.2.2 — 2015-09-04
- 0.2.1 — 2015-08-03
- 0.2.0 — 2015-07-31
- … 1 more at https://npm.io/package/steal-bundler/versions

## README

[![Build Status](https://travis-ci.org/stealjs/steal-bundler.svg?branch=master)](https://travis-ci.org/stealjs/steal-bundler)
[![npm version](https://badge.fury.io/js/steal-bundler.svg)](http://badge.fury.io/js/steal-bundler)

# steal-bundler

For StealTools projects, steal-bundler provides an easy way to bundle static assets along with your CSS and JavaScript, so that your dist folder can be sent to a CDN.

steal-bundler infers static assets from your project and copies them for you automatically (can be turned off if undesired).

## Use

```js
var stealTools = require("steal-tools");
var bundleAssets = require("steal-bundler");

stealTools.build){
	config: __dirname + "/package.json!npm"
}).then(function(buildResult){

	bundleAssets(buildResult, {
		glob: "images/**/*"
	});

});
```

## API

### bundleAssets(bundleResult, [options]) -> Promise

Calling `require("steal-bundler")` will return a function that when called will bundle assets and pack them into a destination folder.

#### buildResult

The [BuildResult](http://stealjs.com/docs/steal-tools.BuildResult.html) obtained from calling `stealTools.build`.

#### options

An optional object for specifying additional options. They are:

- __infer__: By default steal-bundler will infer your static assets in your project by reading your CSS and JavaScript. Set this to `false` if you want to manually specify static assets.
- __glob__: A string or array of strings, of [minimatch globs](https://github.com/isaacs/minimatch) specifying files to be copied.

## License

MIT

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