enter image description here Hello! Gulp pug does not work. Itself is connected as npm i gulp-pug - save-dev

The gulpfile.js has:

const pug = require('gulp-pug'); gulp.task('pug', function() { return gulp.src('src/pug/*.pug') .pipe(pug()) .pipe(gulp.dest('src/temphtml/')) .pipe(browserSync.stream()); }); 

I want to get html, and gives such a picture. What could be the problem?

  • please copy the output from the console on your screenshot and place it in the text of your question - mymedia

1 answer 1

It works for me.

 var gulp = require('gulp'), pug = require('gulp-pug'); gulp.task('pug', function buildHTML() { return gulp.src('src/pug/*.pug') .pipe(pug({ pretty: true })) .pipe(gulp.dest('public/')) .pipe(browserSync.stream()); }); 

  • Thank you very much! Understood. I found a jamb in my pug file ( - Dave Garrow