Bundle scripts into browserify packages
Convention: .js.anything
docpad install browserifybundles
The default configuration for this plugin is the equivalant of adding the following browserify options to your DocPad configuration file:
plugins:
browserifybundles:
debug: false
Create a JavaScript file with the browserify option:
---
browserify: true
---
var mypackage = require('mypackage');
Make certain files available from outside the bundle by using require:
---
browserify:
require:
'./vendor/angular/angular.js':
expose: 'angular'
---
var angular = require('angular');
Prevent a module or file from showing up in the output bundle by using ignore:
---
browserify:
ignore: ['jquery']
---
var jquery = require('jquery');
Prevent a file or module from being loaded into the current bundle, instead referencing from another bundle, by using external.
---
browserify:
external: ['jquery']
---
var jquery = require('jquery');
Prevent a module name or file from showing up in the output bundle by using exclude.
---
browserify:
exclude: ['jquery']
---
var jquery = require('jquery');
Discover the change history by heading on over to the HISTORY.md
file.
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
These amazing people are maintaining this project:
- Benjamin Lupton [email protected] (https://github.com/balupton)
No sponsors yet! Will you be the first?
No contributors yet! Will you be the first?
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Licensed under the incredibly permissive MIT license
Copyright © 2013+ Bevry Pty Ltd [email protected] (http://bevry.me)