0.3.6 • Published 8 years ago

steal-bundler v0.3.6

Weekly downloads
769
License
MIT
Repository
github
Last release
8 years ago

Build Status npm version

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

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 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 specifying files to be copied.

License

MIT

0.3.6

8 years ago

0.3.5

8 years ago

0.3.4

8 years ago

0.3.2

8 years ago

0.3.3

8 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.8

9 years ago

0.2.7

9 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago