gulp-styl

Preprocess CSS with Styl

gulp-styl

Preprocess CSS with Styl

Issues with the output should be reported on the Styl issue tracker.

$ npm install --save-dev gulp-styl
var gulp = require('gulp');
var styl = require('gulp-styl');
var inline = require('rework-inline');
 
gulp.task('default', function () {
    return gulp.src('src/app.css')
        .pipe(styl(inline()))
        .pipe(gulp.dest('dist'));
});

The compress option from Styl is intentionally missing. A separate task like gulp-csso will do a much better job.

Plugins are supplied as arguments. Optionally supply an object with options as the last argument.

Type: boolean
Default: false

Utilize CSS whitespace transformations.

MIT © Sindre Sorhus