Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

neuron-jade-compiler

2.0.0 • Public • Published

Build Status

neuron-jade-compiler

The jade(2.0) compiler module for neuron

Install

$ npm install neuron-jade-compiler --save

Usage

var jade_compiler = require('neuron-jade-compiler');
var builder = require('neuron-builder');
 
builder(entry, {
  pkg: pkg,
  cwd: cwd,
  compilers: [{
    test: /\.jade$/,
    compiler: jade_compiler,
    options: jade_options
  }]
}, function(err, content){
  // if no `err`, `content` will be the bundled content.
});

see neuron-builder for more details.

jade_options

Default specified options for jade

  • filename: will always be the filename of the current file
  • compileDebug: false
  • externalRuntime: false

Other options are not set by default, see here for details

License

MIT

Install

npm i neuron-jade-compiler

DownloadsWeekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • avatar