Socket
Socket
Sign inDemoInstall

browserify-jade

Package Overview
Dependencies
46
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    browserify-jade

browserify v2 plugin for jade with sourcemaps support


Version published
Weekly downloads
252
increased by30.57%
Maintainers
3
Install size
905 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 23 Jul 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc