Answer the question
In order to leave comments, you need to log in
How to track errors in gulp-pug?
Pug in my gallp file is used in the simplest way. The project consists of several templates, includes, mixins, which are then assembled into large html files. At the development stage, there are errors that pug displays as the line number of common large files without any additional information.
How to actually configure gulp-pug to see more error information?
gulpfile.js:
gulp.src(PATH_CONFIG.pug.src)
.pipe(plumber(function (error) {
gutil.log(error.message);
this.emit('end');
}))
.pipe(pug({
pretty: true,
}))
.pipe(gulp.dest(PATH_CONFIG.pug.dest))
.pipe(browserSync.reload({ stream: true }));
cb();
Answer the question
In order to leave comments, you need to log in
Try looking here about gulp-pug errors: https://habr.com/en/post/259225/
Helped
me)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question