1 | # Deprecated
|
2 |
|
3 | The 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
|
24 | const gulp = require('gulp');
|
25 | const rework = require('gulp-rework');
|
26 | const at2x = require('rework-plugin-at2x');
|
27 |
|
28 | gulp.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 |
|
38 | The `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 |
|
42 | Plugins are supplied as arguments.<br>
|
43 | Optionally supply an object with options as the last argument.
|
44 |
|
45 | ### options
|
46 |
|
47 | Type: `Object`
|
48 |
|
49 | #### sourcemap
|
50 |
|
51 | Type: `boolean`<br>
|
52 | Default: `false`
|
53 |
|
54 |
|
55 | ## License
|
56 |
|
57 | MIT © [Sindre Sorhus](https://sindresorhus.com)
|