Questions tagged [gulp-rev]

a gulp plugin for static assets revisioning.

gulp-rev is a gulp plugin for static assets revisioning by appending a generated content hash to filenames.

The very basic example of revisioning CSS files:

var gulp = require('gulp');
var rev = require('gulp-rev');

gulp.task('default', function () {
  return gulp.src('src/*.css')
    .pipe(rev())
    .pipe(gulp.dest('dist'));
});

It's important to set files to never expire mode in order to make the plugin work correctly.

51 questions
1
vote
1 answer

AngularJS, Gulp Static asset revisioning

I'm using gulp-rev module for static asset re-visioning of my source files and it generates all files - CSS, JS and HTML with new file names appending the hash code in it. Before : app.js After : app-2cba45c.js But in my AngularJS code and…
Koushik Ravulapelli
  • 1,140
  • 11
  • 30
1
vote
0 answers

Problems when trying to create rev.manifest

I'm trying to change a task from my gulpfile to create a rev manifest to be used in another moment. After this code work, I will add gulp-sourcemap to create some sourcemaps. But, this simple thing need to work first. The objective is concatenate…
Daniel Medina
  • 887
  • 1
  • 6
  • 8
1
vote
1 answer

gulp-rev generating new file name for same code base

Working on a codebase that has used the yeoman angular generator (1.4.x). gulp-rev is getting used and it's generating a new file (hash) name every single time even for the same code base, how can I keep the same file hash? Here's the main task…
asdasdasdasdqwe
  • 321
  • 1
  • 8
  • 20
1
vote
1 answer

Gulp-rev will not merge manifest files with correct paths

I can't seem to get gulp-rev to have the correct paths. I've tried everything I can think of. I have two tasks (among others) one for scripts and one for styles. I can get a merged manifest.json file successfully. However, the paths are not coming…
skube
  • 5,867
  • 9
  • 53
  • 77
1
vote
0 answers

Angular app cache issue in loading nested view URL

I've been building my angular application using gulp. My index.html file will contain script and style file name with hash value append at the end. This has been used to add revision to file names on every new build using gulp-rev. example: …
Pandiyan Cool
  • 6,381
  • 8
  • 51
  • 87
1
vote
1 answer

html avoid caching with angularjs stateprovider & gulp

I'm trying to avoid caching my Html files. I've tried to work with rev & rev-replace. the result is that only file names are changed but the file's references in the stateprovider aren't changed so it is been resulted with files not found…
1
vote
2 answers

gulpfile.js: rev.manifest() not merging several JS tasks

The code bellow doesn't merge correctly rev-manifest.json file. I loop several JS tasks and just one is merged, although hash files are being created and stored correctly. I already tried a ton of things, I checked gulp-rev and some users seam to…
cmancre
  • 1,061
  • 3
  • 11
  • 23
1
vote
0 answers

Gulp - After versioning my images with "gulp-rev", how can I update their references in a CSS in a different location to the outputted image files?

Using Gulp and Node.js, I'm creating a proof of concept that generates sprites from folders of images, then versions the generated sprites so they have unique file names for cache busting purposes. I'm using https://www.npmjs.com/package/gulp-rev to…
Tim
  • 173
  • 2
  • 11
1
vote
2 answers

Can't get gulp-rev-replace working with gulp-useref

Continuing my previous question - but this time is the next step: getting file revisions to work. I'm working through johnpapa's course on automation with Gulp and seem to hit another wall (that's what you get when you try to adapt a concise course…
st2rseeker
  • 473
  • 1
  • 5
  • 28
0
votes
0 answers

hash updated but the browser still loads the old cache using gulp-rev

I've been scratching head to bold due to this I have set hash to name of all html files using gulp-rev and they are all matched in manifest file . I use gulp-rev-collector to match all updated hash as well . I'm sure if any of content of client…
FVBn
  • 97
  • 11
0
votes
1 answer

gulp-rev-rewrite not writing in all files

I have multiple files where i need to rename the hashed css from the manifest.json but i cant seem to get it to work. I have tried creating an array with multiple sources and destinations but i think im missing something. Basically i want it to…
Doddsy
  • 47
  • 2
  • 8
0
votes
1 answer

Is there any way to keep track of all js files created by gulp-rev in rev-mainfest.json file?

I am using gulp-rev to generate minified js files. Now gulp-rev only keep track of last revision in rev-mainfest.json file e.g { "product-min.js": "product-min.a2720ef6.js" } But I want to keep track of all generated files e.g { …
Ask
  • 3,076
  • 6
  • 30
  • 63
0
votes
1 answer

Issue in rev-manifest.json file path

I am using gulp-rev and it is working fine. But I have one issue. I have multiple gulp task and I want to keep track of all in rev-mainfest.json file so I am providing merge:true config in rev.manifest() but it is not creating the file on the path I…
Ask
  • 3,076
  • 6
  • 30
  • 63
0
votes
1 answer

How to replace Filenames inside my manifest.json File using rev-replace

i'm stuck a little - i want to replace image file names with their hashed version inside my manifest file. Manifest looks like this: { "icons": [ { "src": "android-chrome-192x192.png", "sizes": "192x192", "type":…
Stefan F.
  • 608
  • 7
  • 15
0
votes
1 answer

Gulp v4 - tasks ordering issue

I'm trying to create cahe-buster with gulp-rev and gulp-revReplace, everything works fine when I'm compiling javascript, but the replacement of main css file isn't working as it should, replace always takes the old rev-manifest.json file and not the…
Adam Wojda
  • 749
  • 1
  • 7
  • 14