UNPKG

1.17 kBMarkdownView Raw
1# Deprecated
2
3The Rework project is no longer maintained.
4
5---
6
7# gulp-rework [![Build Status](https://travis-ci.org/sindresorhus/gulp-rework.svg?branch=master)](https://travis-ci.org/sindresorhus/gulp-rework)
8
9> Preprocess CSS with [Rework](https://github.com/reworkcss/rework)
10
11*Issues with the output should be reported on the Rework [issue tracker](https://github.com/reworkcss/rework/issues).*
12
13
14## Install
15
16```
17$ npm install --save-dev gulp-rework
18```
19
20
21## Usage
22
23```js
24const gulp = require('gulp');
25const rework = require('gulp-rework');
26const at2x = require('rework-plugin-at2x');
27
28gulp.task('default', () =>
29 gulp.src('src/app.css')
30 .pipe(rework(at2x(), {sourcemap: true}))
31 .pipe(gulp.dest('dist'))
32);
33```
34
35
36## API
37
38The `compress` option from Rework is intentionally missing. A separate task like [gulp-csso](https://github.com/ben-eb/gulp-csso) will do a better job.
39
40### rework(plugin, plugin, ..., [options])
41
42Plugins are supplied as arguments.<br>
43Optionally supply an object with options as the last argument.
44
45### options
46
47Type: `Object`
48
49#### sourcemap
50
51Type: `boolean`<br>
52Default: `false`
53
54
55## License
56
57MIT © [Sindre Sorhus](https://sindresorhus.com)