gulp-rev-style-url

0.1.1 • Public • Published

REPLACE REV URL IN STYLE FILES (scss/less/stylus/css)

It's fork (https://github.com/galkinrost/gulp-rev-css-url) optimized for work with not only css.

The lightweight plugin to override urls in styles files to hashed after gulp-rev

Install

npm install gulp-rev-style-url

Usage

var gulp=require('gulp');
var rev=require('gulp-rev');
var override=require('gulp-rev-style-url');
 
gulp.task('rev',function(){
    return gulp.src('./app/**/*')
                .pipe(rev())
                .pipe(override())
                .pipe(gulp.dest('./build/'))
                .pipe(rev.manifest())
                .pipe(gulp.dest('./build/'));
});
 

AND

gulp rev

Tests

npm test

License

MIT

Package Sidebar

Install

npm i gulp-rev-style-url

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • denisby