Closed vaurelios closed 8 years ago
const gulp = require('gulp'); const jade = require('gulp-jade'); const vulcanize = require('gulp-vulcanize'); gulp.task('jade', function () { return gulp.src('./components/*.jade') .pipe(jade()) .pipe(gulp.dest('build/compiled-jade')); }); gulp.task('vulcanize', ['jade'], function () { return gulp.src('/build/compiled-jade/graduando-quest.html') .pipe(vulcanize({ abspath: '.', })) .pipe(gulp.dest('build')); }); gulp.task('default', ['vulcanize']);
the above gulpfile.js ends ok, no error but neither output file.
gulpfile.js
using vulcanize from command line in the same project works ok.
vulcanize -p $PWD /build/compiled-jade/graduando-quest.html
The gulp output:
[18:21:36] Using gulpfile ~/git/GraduandoQuest/gulpfile.js [18:21:36] Starting 'jade'... [18:21:37] Finished 'jade' after 305 ms [18:21:37] Starting 'vulcanize'... [18:21:37] Finished 'vulcanize' after 4.66 ms [18:21:37] Starting 'default'... [18:21:37] Finished 'default' after 21 μs
Sounds like an issue with the Vulcanize API. This plugin does almost nothing: https://github.com/sindresorhus/gulp-vulcanize/blob/master/index.js
I would recommend opening an issue on Vulcanize instead.
the above
gulpfile.js
ends ok, no error but neither output file.using vulcanize from command line in the same project works ok.
vulcanize -p $PWD /build/compiled-jade/graduando-quest.html
The gulp output: