JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3611
  • Score
    100M100P100Q122173F

Rewrite url references in CSS

Package Exports

  • gulp-rewrite-css

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-rewrite-css) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#gulp-rewrite-css

NPM version Build Status Coverage Status Dependency Status devDependency 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) 2015 Joscha Feth joscha@feth.com