node package manager

gulp-css-url-to-relative

gulp-css-url-to-relative

based on gulp-css-url-to-absolute

Getting Started

install

npm install gulp-css-url-to-relative --save

Once the plugin has been installed, you can go on like that on your gulpfile:

var cssUrlToRelative = require('gulp-css-url-to-relative');

    return gulp.src(files)
        .pipe(cssUrlToRelative({
            root: './'//input your root path
        }))

Options

options.root

Type: String

Default value: process.cwd() (node)

root directory.