Example #1
0
gulp.task("templatesProd", () => {
    return gulp.src("src/**/*.jade")
        .pipe(pug({
            pretty: false
        }))
        .pipe(gulp.dest("build"));
});
  @Task('pug')
  pug() {
    var options = {
      pretty: true
    };

    return gulp.src(`${this.src}client/app/index.pug`)
        .pipe(pug(options))
        .pipe(gulp.dest(this.indexDist));
  }
Example #3
0
gulp.task('html', () => {
  return gulp.src('src/**/*.pug')
  .pipe(pug())
  .pipe(plumber())
  .pipe(gulp.dest("build"));
});