Rewrite url references in CSS


A gulp plugin that allows rewriting url references in 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')
  • 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) 2015 Joscha Feth