Closed nring closed 8 years ago
Nevermind, this was more of an issue with gulp-useref than gulp-rev-replace. I ended up setting the style references in each HTML file to the root of the app directory and supplying 3 directories to search:
<!-- build:css({.tmp,app,.}) /styles/main.css -->
<link rel="stylesheet" href="/bower_components/normalize-css/normalize.css">
<link rel="stylesheet" href="/styles/main.css">
<!-- endbuild -->
Which matches the three directories supplied to gulp-useref
const assets = $.useref.assets({searchPath: ['.tmp', 'app', '.']});
I'm wondering how to get gulp-rev-replace to replace file references with the same hash across multiple html files. Considering the following:
And the following html statements:
index.html:
subfolder/index.html:
And the following in my Gulpfile
index.html will get replaced with the correct styles and scripts reference, while subfolder/index.html will get an entirely new hash.
Am I setting up my Gulpfile incorrectly?