JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
.editorconfig
.gitignore
.npmignore
.travis.yml
CONTRIBUTING.md
Cakefile
HISTORY.md
LICENSE.md
README.md
coffeelint.json
package.json

README.md

Browserify Bundles for DocPad

Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
Gratipay donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

Bundle scripts into browserify packages

Install

docpad install browserifybundles

Usage

Add the following to your docpad configuration file:

	plugins:
		browserifybundles:
			bundles: [
				{
					arguments: ['-r', 'rtc-videoproc/filters/grayscale']
					entry: 'videoproc.js'
					out:   'videoproc-bundled.js'
				},
				{
					ignore: 'jquery'
					entry:  'miniview.js'
					out:    'miniview-bundled.js'
				}
			]

The bundles option is the list of bundles you want. Each bundle accepts the following arguments:

  • entry a String pointing to which file should be executed right away with this bundle, it is prefixed with the project's outPath if it is a relative path
  • out a String pointing to where the bundle should be written, it is prefixed with the project's outPath if it is a relative path
  • ignore a String or Array of Strings for which modules should not be bundled with this bundle
  • require a String or Array of Strings of paths that should be bundled with this bundle
  • arguments an Array of Strings that should be sent to the browserify executable

History

Discover the change history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Gratipay donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Unless stated otherwise all works are:

and licensed under: