Skip to content

Instantly share code, notes, and snippets.

@tuxlinuxien
Created August 25, 2017 03:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuxlinuxien/1b491b14f362e7aacbbae048f1981238 to your computer and use it in GitHub Desktop.
Save tuxlinuxien/1b491b14f362e7aacbbae048f1981238 to your computer and use it in GitHub Desktop.
gulpfile style
// 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