0.0.12 • Published 8 years ago

gulp-css-url v0.0.12

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

gulp-css-cache-bust NPM version

Transforms the path of url() to relative or absolute

Install

$ npm install --save-dev gulp-css-url

Usage

var gulp = require('gulp');
var url = require('gulp-css-url');

gulp.task('default', function () {
  return gulp.src('index.css')
  .dest('path/to/dest')
  .pipe(url())
  .dest('path/to/dest');
});

API

url(options)

options.mode

Type: string

Default: 'relative'

The mode of transform. When 'absolute' is specified, this plugin transforms the path of url to absolute.

options.base

Type: string

Default: '.'

The path of document root.

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

9 years ago

0.0.9

9 years ago