Merge pull request #33 from netlify/revert-32-css-on-exit

Revert "Prevent exiting on css error"
This commit is contained in:
David Calavera 2017-06-05 20:13:16 -07:00 committed by GitHub
commit f7740645f9
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.task("css", () => (
gulp.src("./src/css/*.css") gulp.src("./src/css/*.css")
.pipe(postcss([cssImport({from: "./src/css/main.css"}), cssnext()])) .pipe(postcss([cssImport({from: "./src/css/main.css"}), cssnext()]))
.on("error", swallowError)
.pipe(gulp.dest("./dist/css")) .pipe(gulp.dest("./dist/css"))
.pipe(browserSync.stream()) .pipe(browserSync.stream())
)); ));
@ -64,8 +63,3 @@ function buildSite(cb, options) {
} }
}); });
} }
function swallowError(error) {
console.error(error.toString());
this.emit("end");
}