Skip to content

Prevent pipe breaking, log and notify using gulp-plumber and node-notifier

Notifications You must be signed in to change notification settings

kvnapavl/gulp-plumber-notifier

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-plumber-notifier

Prevent pipe breaking, log and notify using gulp-plumber and node-notifier

//////////////////////////////////////////////////
// Styles Task                                  //
// + SASS -> CSS                                //
// + Remove unused CSS                          //
// + Add vendor prefixes                        //
// + Minify                                     //
//////////////////////////////////////////////////

gulp.task('styles', function () {
    return gulp
        .src('scss/**/*.scss')
        .pipe(plumberNotifier())
        .pipe(sass({
            outputStyle: 'compressed',
            sourcemap: true,
        }))
        .pipe(uncss({
            html: ['index.html', 'posts/**/*.html', 'http://example.com']
        }))
        .pipe(prefix('last 2 versions'))
        .pipe(csso())
        .on('error', errorLog)
        .pipe(gulp.dest('build/css'))
        .pipe(livereload());
});

About

Prevent pipe breaking, log and notify using gulp-plumber and node-notifier

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%