I'm trying to version the assets from my polymer web app using gulp-rev-all. However, gulp-rev-all is doing replace and adding hash also in the dom-module id.
Ex: <dom-module id="cr-header.fd743a17">
gulp.task('version-assets', ['vulcanize'], function () {
if (production) {
gulp
.src(
[
folder.build + 'app/src/**/**/*.html',
folder.build + 'app/src/**/*.js',
folder.build + 'app/src/**/*.css',
folder.build + 'app/index.html',
folder.build + 'app/error-404.html',
])
.pipe(RevAll.revision({ dontRenameFile: [/^\/favicon.ico$/g, /^\/index.html/g, /^\/error-404.html/g] }))
.pipe(revdel())
.pipe(gulp.dest(folder.build + 'app/'))
.pipe(RevAll.manifestFile())
.pipe(gulp.dest(folder.build + 'app/src'));
}
});
I found a possible solution to how this should be corrected, but I honestly could not figure out how to correct my case. (can be viewed here link )