gulp-cachebust icon indicating copy to clipboard operation
gulp-cachebust copied to clipboard

cachebust in included file

Open djindjic opened this issue 11 years ago • 4 comments

I tried to simplify my gulpfile and part it in few smaller, included into main gulpfile. Assets files with finger prints are created but references in index.html are not updated.

djindjic avatar Oct 19 '14 08:10 djindjic

Hmm that's strange, can you provide a sample gist of your gulpfile? It will help me find the issue.

Josiah avatar Oct 27 '14 09:10 Josiah

I have had a problem with it 1 week ago and just leave it all in same file. I have succeeded it this time and it works correctly (my fault sorry), but found only one problem more. If I pipe chachebust after gulp-uncss plugin, css file is created (with finger print) but no full name in index.html (only orginal file name).

I'm not an guru and not sure if it's a problem with uncss or cachebust but I would be grateful if you take a look here: https://github.com/djindjic/generator-gulpular/blob/4aebf55e5127bfeecb7835ed84ae2f23b5ce184c/app/templates/gulp/vendor_util.js#L25

this is my yeoman generator but if you want to clone it, you can just navigate to app/templates and start gulp (default) tast

djindjic avatar Oct 27 '14 17:10 djindjic

I'm also having the same problem. css is being generated but reference in html file is not updated

jitendravyas avatar Sep 11 '15 03:09 jitendravyas

I have this code in my index.js main file: import CacheBuster from 'gulp-cachebust'; global.cachebust = new CacheBuster();

And when I use it its like this: .pipe(global.cachebust.resources()) & .pipe(global.cachebust.references())

Works fine.

AlexKryzh avatar Jan 25 '16 15:01 AlexKryzh