timse / gulp-rewrite-css

A gulp plugin that allows rewriting url references in CSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#gulp-rewrite-css NPM version Build Status Coverage Status Dependency Status

A gulp plugin that allows rewriting url references in CSS

Information

Packagegulp-rewrite-css
Description Rewrite `url(...)` references in CSS files.
Node Version >= 0.10

Installation

npm install --save gulp-rewrite-css

Usage

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));
});

Options

  • 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

License

MIT (c) 2014 Joscha Feth joscha@feth.com

About

A gulp plugin that allows rewriting url references in CSS

License:MIT License