Last active
August 29, 2015 13:56
-
-
Save yhsiang/9346507 to your computer and use it in GitHub Desktop.
multiple source for using gulpjs to build css files with Sass, Stylus, Pure CSS
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
require <[ gulp gulp-util gulp-concat gulp-stylus gulp-ruby-sass streamqueue]> | |
gulp.task 'styles' -> | |
stream = streamqueue object-mode: true | |
stream.queue gulp.src "#src-path/styles/**/*.sass" .pipe gulp-ruby-sass! | |
stream.queue gulp.src "#src-path/styles/**/*.styl" .pipe gulp-stylus! | |
stream.queue gulp.src "#src-path/styles/**/*.css" | |
stream.done! | |
.pipe gulp-concat 'all.css' | |
.pipe gulp.dest "#{dest-path}/styles" | |
gulp.task 'default' <[styles]> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment