Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cuth committed Feb 2, 2015
1 parent ec0d9a3 commit af9584a
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,29 @@ Default:

### Tools

[gulp-pxtorem](https://github.com/cuth/gulp-pxtorem)
[gulp-pxtorem](https://github.com/cuth/gulp-pxtorem)


### Use with gulp-postcss and autoprefixer-core
```js
var gulp = require('gulp');
var postcss = require('gulp-postcss');
var autoprefixer = require('autoprefixer-core');
var pxtorem = require('pxtorem');

gulp.task('css', function () {

var processors = [
autoprefixer({
browsers: 'last 1 version'
}),
pxtorem({
replace: false
})
];

return gulp.src(['build/css/**/*.css'])
.pipe(postcss(processors))
.pipe(gulp.dest('build/css'));
});
```

0 comments on commit af9584a

Please sign in to comment.