#gulp-rewrite-css
A gulp plugin that allows rewriting url references in CSS
Package | gulp-rewrite-css |
Description | Rewrite `url(...)` references in CSS files. |
Node Version | >= 0.10 |
npm install --save gulp-rewrite-css
var gulp = require('gulp'),
rewriteCSS = require('gulp-rewrite-css');
gulp.task('my-rewrite', function() {
var dest = './dist/'
return gulp.src('./static/css/*.css')
.pipe(rewriteCSS({destination:dest}))
.pipe(gulp.dest(dest));
});
destination
(required) - the target directory for the processed CSS. Paths are rewritten relatively to that directory.[debug]
(optional, defaults to false) - whether to log what gulp-rewrite-css is doing
MIT (c) 2014 Joscha Feth joscha@feth.com