Skip to content

Instantly share code, notes, and snippets.

@yochem
Last active February 20, 2017 18:31
Show Gist options
  • Save yochem/fb02492d9ff977b58a568cfdc4cb9256 to your computer and use it in GitHub Desktop.
Save yochem/fb02492d9ff977b58a568cfdc4cb9256 to your computer and use it in GitHub Desktop.
Using stylus in Gulp
# stylus plugin from https://github.com/stevelacy/gulp-stylus
# include this require in the variables on top
var stylus = require('gulp-stylus');
# Gulp task
gulp.task('stylus', function () {
return gulp.src('_stylus/*.styl')
.pipe(stylus({
includePaths: ['stylus'],
onError: browserSync.notify
}))
.pipe(gulp.dest('_site/css'))
.pipe(browserSync.reload({stream:true}))
.pipe(gulp.dest('css'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment