R
R
ralo2016-02-16 15:32:09
Sass
ralo, 2016-02-16 15:32:09

Gulp connecting jade and scss?

Please tell me what needs to be added or changed in the galp file so that when jade or scss changes, the page auto-refresh works. Now auto-update works only when changing jade files.
6d24d2ec10f74c6d8e2f49bc9b23cfbb.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Kravchenko, 2016-02-16
@mydearfriend

line 29

.pipe(gulp.gest('app/css'))
.pipe(browserSync.stream())

E
evilelf, 2016-03-11
@evilelf

Buddy, based on your screen, you can try to do the following:

var connect = require('gulp-connect'),
jade = require('gulp-jade');

gulp.task('templates', function () {
    gulp.src('jade/pages/*.jade')
        .pipe(jade({
            locals: '',
            pretty : true
        }))
        .pipe(gulp.dest('app'))
        .pipe(connect.reload());
});

But it turns out that this will only work in jade/pages/*.jade files in the app folder, *.html files will go

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question