Nepotistic Pontifex Maximus
Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

This package has been deprecated

Author message:

The Rework project is no longer maintained.

gulp-rework

4.0.0 • Public • Published

Deprecated

The Rework project is no longer maintained.


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

const gulp = require('gulp');
const rework = require('gulp-rework');
const at2x = require('rework-plugin-at2x');
 
gulp.task('default', () =>
    gulp.src('src/app.css')
        .pipe(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.

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

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

options

Type: Object

sourcemap

Type: boolean
Default: false

License

MIT © Sindre Sorhus

install

npm i gulp-rework

Downloadsweekly downloads

1,956

version

4.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability