Original project by Thomas Creeten, see https://github.com/CREEATION/laravel-elixir-jade
$ npm install elixir-jade
Require the extension and call it using mix.jade().
var elixir = require('laravel-elixir');
require('elixir-jade');
elixir(function(mix)
{
mix.jade({
baseDir: './',
dest: 'public/mobile/app/',
pretty: true,
search: '**/*.jade',
src: 'angular/jade/',
extension: '.html'
});
});
For Jade's options, see http://jade-lang.com/api/
Compiled Templates are located in your /resources/views/ folder as default.
All other options should be pretty straight forward.
These are the default options:
{
baseDir: './resources',
dest: '/views/',
pretty: true,
search: '**/*.jade',
src: '/jade/',
extension: '.html'
}
Run gulp.
$ gulp