gulp-styl

Preprocess CSS with Styl

npm install gulp-styl
6 downloads in the last day
18 downloads in the last week
136 downloads in the last month

gulp-styl Build Status

Preprocess CSS with Styl

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

Install

Install with npm

npm install --save-dev gulp-styl

Example

var gulp = require('gulp');
var styl = require('gulp-styl');
var inline = require('rework-inline');

gulp.task('default', function () {
    gulp.src('src/app.css')
        .pipe(styl(inline()))
        .pipe(gulp.dest('dist'));
});

API

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

styl(plugin, plugin, ..., options)

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

options.whitespace

Type: Boolean
Default: false

Utilize CSS whitespace transformations.

License

MIT © Sindre Sorhus

npm loves you