From 9d33b3ddba6da9d76557462e328fe47c0223a5eb Mon Sep 17 00:00:00 2001 From: David Calavera Date: Mon, 5 Jun 2017 16:12:29 -0700 Subject: [PATCH] Revert "Prevent exiting on css error" --- gulpfile.babel.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 44a043e..8aafe62 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -21,7 +21,6 @@ gulp.task("build-preview", ["css", "js", "hugo-preview"]); gulp.task("css", () => ( gulp.src("./src/css/*.css") .pipe(postcss([cssImport({from: "./src/css/main.css"}), cssnext()])) - .on("error", swallowError) .pipe(gulp.dest("./dist/css")) .pipe(browserSync.stream()) )); @@ -64,8 +63,3 @@ function buildSite(cb, options) { } }); } - -function swallowError(error) { - console.error(error.toString()); - this.emit("end"); -}