Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question