shakyShane / jekyll-gulp-sass-browser-sync

A starter project including full setup for Jekyll, GulpJS, SASS & BrowserSync
728 stars 169 forks source link

Task 'pug' is not in your gulpfile #64

Open iBenz opened 7 years ago

iBenz commented 7 years ago

Hey guys. I've got this problem... it saying pug is not in my gulp file but already is ..

//IN MY gulpfile gulp.task('pug', function() { return gulp.src('_pugfiles/*.pug') .pipe(pug()) .pipe(gulp.dest('_includes')); });

//ERROR [MacBook-Pro-uzivatela-Juraj:jekyll-gulp-sass-browser-sync-master jurajremenar$ gulp pug [22:50:18] Using gulpfile ~/Desktop/jekyll-gulp-sass-browser-sync-master/gulpfile.js [22:50:18] Task 'pug' is not in your gulpfile [22:50:18] Please check the documentation for proper gulpfile formatting MacBook-Pro-uzivatela-Juraj:jekyll-gulp-sass-browser-sync-master jurajremenar$

Reakktor commented 6 years ago

Did you add pug as a variable?

var pug = require('gulp-pug');

nuriasakura commented 6 years ago

This one was simple and worked for me:

https://www.npmjs.com/package/gulp-pug-inheritance