Merge pull request #33 from netlify/revert-32-css-on-exit
Revert "Prevent exiting on css error"
This commit is contained in:
commit
f7740645f9
|
@ -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");
|
|
||||||
}
|
|
||||||
|
|
Reference in New Issue