Passing dust compilation options to Gulp Dust task

180 Views Asked by At

I would like to pass various dustc options to gulp-dust in my node application. For eg, How can I set amd, cwd in gulp-dust. I understand we can pass name and preserveWhiteSpace in compilation options. But, what about other options?

Code Snippet:

var dust = require('gulp-dust');
...

gulp.task('buildTemplates', function(){

   gulp.src('templates/page.dust').
        pipe(dust()).  //How will I say I need dust.config.amd=true
        pipe.dest('dist');  

});

0

There are 0 best solutions below