Skip to content

docpad-archive/docpad-plugin-browserifybundles

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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: