Skip to content

NodejsMagic/gulp-rev-style-url

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published