🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

browserify-jade

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-jade

browserify v2 plugin for jade with sourcemaps support

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
274
6.61%
Maintainers
3
Weekly downloads
 
Created
Source

browserify-jade

jade transform for browserify v2. Sourcemaps generation included.

screen shot 2013-08-28 at 5 02 16 pm

Bitdeli Badge

Configuration

If you are using browserify-jade programatically, you can pass options to the Jade compiler by calling jade() on the browserify-jade transform:

var b = browserify();
b.transform(require('browserify-jade').jade({
    pretty: false
}));

If you are using browserify-jade in a command line build, you can pass parameters by adding a "browserify-jade" section to your package.json. You can either include parameters directly:

"browserify-jade": {
    "pretty": false
}

or for more complicated cases you can reference a .js file:

"browserify-jade": "./assets/browserify-jade-config.js"

And then in browserify-jade-config.js:

module.exports = {
    pretty: (process.env.NODE_ENV == 'production')?true:false
};

Keywords

browserify

FAQs

Package last updated on 23 Jul 2015

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