Revert "Prevent exiting on css error"

This commit is contained in:
David Calavera 2017-06-05 16:12:29 -07:00 committed by GitHub
parent 81c3f9d380
commit 9d33b3ddba
1 changed files with 0 additions and 6 deletions

View File

@ -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");
}