L
L
lavezzi12015-08-05 20:26:52
Pug
lavezzi1, 2015-08-05 20:26:52

How to disable html file compression in gulp-jade task?

Hello.
Installed https://www.npmjs.com/package/gulp-jade. Works.
But it is necessary that the output is not compressed html.
How to disable?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2015-08-05
@lavezzi1

gulp.task('jade', function () {
  return gulp.src('public/**/*.jade')
    .pipe(gulpJade({
      jade: jade,
      pretty: true
    }))
    .pipe(gulp.dest('public/'))
})

Right on the page you linked to.

S
Sergey, 2015-08-05
Protko @Fesor

How to make Gulp.js not minify html file after compiling it from jade?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question