gulp-css-url
v0.0.12
Published
Transform the path of url() to relative or absolute
Downloads
21
Readme
gulp-css-cache-bust
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.