Last active
February 20, 2017 18:31
-
-
Save yochem/fb02492d9ff977b58a568cfdc4cb9256 to your computer and use it in GitHub Desktop.
Using stylus in Gulp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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