A
A
Andrew Sky2015-08-01 22:33:44
Node.js
Andrew Sky, 2015-08-01 22:33:44

Gulp-jade how to compile html not into one line?

I use gulp-jade to compile from jade to html. Everything compiles, only the problem is that html is compiled into one line. How to compile jade to regular html using gulp? or how to pass the -P argument? my task for jade:

'use strict'
var gulp = require('gulp');
var jade = require('gulp-jade');
gulp.task('jade', function(){
  gulp.src('./jade/*.jade')
    .pipe(jade({locals: '-P'}))
    .pipe(gulp.dest('./html/'))
});

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Petrov, 2015-08-01
@Sky161

pretty: true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question