Skip to content

Instantly share code, notes, and snippets.

@dinodsaurus
Created March 12, 2015 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dinodsaurus/89323b3edf8d67afba5c to your computer and use it in GitHub Desktop.
Save dinodsaurus/89323b3edf8d67afba5c to your computer and use it in GitHub Desktop.
gulp style task
gulp.task("styles", function () {
return gulp.src("app/styles/**/*.scss")
.pipe($.sourcemaps.init())
.pipe($.sass({
outputStyle: "nested", // libsass doesn"t support expanded yet
precision: 10,
includePaths: ["."],
onError: console.error.bind(console, "Sass error:")
}))
.pipe($.postcss([
require("autoprefixer-core")({browsers: ["last 2 versions"]})
]))
.pipe($.flatten())
.pipe(gulp.dest(".tmp/styles"));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment