Created
August 25, 2017 03:20
-
-
Save tuxlinuxien/1b491b14f362e7aacbbae048f1981238 to your computer and use it in GitHub Desktop.
gulpfile style
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
// include the required packages. | |
var gulp = require('gulp'); | |
var stylus = require('gulp-stylus'); | |
var koutoSwiss = require( "kouto-swiss" ); | |
// Options | |
// Options compress | |
gulp.task('styles', function () { | |
return gulp.src('./css/main.styl') | |
.pipe(stylus({ | |
compress: true, | |
use:koutoSwiss(), | |
})) | |
.pipe(gulp.dest('../public/static/css/')); | |
}); | |
// Rerun the task when a file changes | |
gulp.task('watch', function() { | |
gulp.watch('./css/**/*.styl', ['styles']) | |
gulp.watch('./css/main.styl', ['styles']) | |
}); | |
// The default task (called when you run `gulp` from cli) | |
gulp.task('default', ['styles', 'watch']); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment