gulp-css-url

0.0.12 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i gulp-css-url

Weekly Downloads

2

Version

0.0.12

License

MIT

Last publish

Collaborators

  • minodisk