floatdrop / gulp-watch

Watch, that actually is an endless stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working `livereload` with extension `css`.

Yuriy-Svetlov opened this issue · comments

Hello! Very much thank you for this lib!

// Not working livereload with extension css. But if set php, scss or sass - it working!

gulp.task('watchminifycss', function () {

    return watch('basic/views/layouts/index/html_source/css/**/*.scss', { verbose: true, "ignoreInitial": false}, function (events) {
         gulp.src('basic/views/layouts/index/html_source/css/**/*.scss')
        .pipe(plumber()) 
        .pipe(cssnano())        
        .pipe(gulp.dest('basic/views/layouts/index/css/'))
        .pipe(livereload({ start: true }));
    });
});

gulp.task('livereload', function () {
    livereload.listen();
});

gulp.task('wi', ['livereload', 'watchminifycss']);