Skip to content

Instantly share code, notes, and snippets.

@TylerK
Last active August 29, 2015 14:06
Show Gist options
  • Save TylerK/c10edbdcc55e48081281 to your computer and use it in GitHub Desktop.
Save TylerK/c10edbdcc55e48081281 to your computer and use it in GitHub Desktop.
var gulp = require('gulp')
, plumber = require('gulp-plumber')
, notify = require('gulp-notify')
, stylus = require('gulp-stylus')
, sync = require('browser-sync')
gulp.task('stylus', function() {
return gulp.src('build/stylus/site.styl')
.pipe(plumber({
errorHandler: notify.onError({
sound: 'Purr',
title: "Stylus Error:",
message: "<%= error.fileName %> on line <%=error.line %>: <%= error.message %>"})
}))
.pipe(stylus({
use: [nib(), jeet(), rupture()],
compress: true,
linenos: false
}))
.pipe(gulp.dest(destinations.styles))
.pipe(refresh())
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment