gulp-rework

Preprocess CSS with Rework

npm install gulp-rework
11 downloads in the last day
48 downloads in the last week
206 downloads in the last month

gulp-rework Build Status

Preprocess CSS with Rework

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

Install

$ npm install --save-dev gulp-rework

Usage

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

gulp.task('default', function () {
    gulp.src('src/app.css')
        .pipe(rework(rework.at2x(), {sourcemap: true}))
        .pipe(gulp.dest('dist'));
});

API

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

The built-in plugins are available on the rework instance. Eg. rework.at2x().

rework(plugin, plugin, ..., [options])

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

options.sourcemap

Type: boolean
Default: false

License

MIT © Sindre Sorhus

npm loves you