ionic-gulp-jade

0.1.26 • Public • Published

ionic-gulp-jade

simple jade compiler for ionic v2

API

jadeBuild([options])

Returns a stream of Vinyl files that can be piped.

Available options:

  • src (String|Array) Glob or array of globs (What's a glob?) matching jade entry files. Default: 'app/**/*.jade'.
  • dest (String) Output path for the compiled CSS bundle(s). Default: 'www/build/'.
  • jadeOptions (Object) jade-lang options. Default:
{
  pretty: true,
  doctype: 'html'
}
  • onError (Function) Error handler when there are errors in the Sass stream. Default:
function(err) {
  console.error(err.message);
  this.emit('end');
}

Example

var jadeBuild = require('ionic-gulp-jade');

gulp.task('jade', jadeBuild);

gulp.task('jade', function(){
  return jadeBuild({
    dest: 'www/my-custom-build-dir',
  });
});

Readme

Keywords

Package Sidebar

Install

npm i ionic-gulp-jade

Weekly Downloads

0

Version

0.1.26

License

MIT

Last publish

Collaborators

  • grava