Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docpad-plugin-browserifydocs

Package Overview
Dependencies
Maintainers
5
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-browserifydocs

Browserify your documents by adding the `browserify: true` meta data

  • 2.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
5
Weekly downloads
 
Created
Source

Browserify Documents for DocPad

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
Patreon donate button Open Collective donate button Gratipay donate button Flattr donate button PayPal donate button Bitcoin donate button Wishlist browse button
Slack community badge

Browserify your documents by adding the browserify: true meta data

Install

Install this DocPad plugin by entering docpad install browserifydocs into your terminal.

Usage

Create a JavaScript file with the browserify option:

---
browserify: true
---

var mypackage = require('mypackage');

Configure

Defaults

The default configuration for this plugin is the equivalant of adding the following browserify options to your DocPad configuration file:

plugins:
	browserifydocs:
		debug: false

Require

Make certain files available from outside the bundle by using require:

---
browserify:
	require:
		'./vendor/angular/angular.js':
			expose: 'angular'
---

var angular = require('angular');

Ignore

Prevent a module or file from showing up in the output bundle by using ignore:

---
browserify:
	ignore: ['jquery']
---

var jquery = require('jquery');

External

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');

Exclude

Prevent a module name or file from showing up in the output bundle by using exclude.

---
browserify:
	exclude: ['jquery']
---

var jquery = require('jquery');

History

Discover the release 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?

Patreon donate button Open Collective donate button Gratipay donate button Flattr donate button PayPal donate button Bitcoin donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

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

License

Unless stated otherwise all works are:

and licensed under:

Keywords

FAQs

Package last updated on 18 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc