0
I am trying to versioning the Assets from my Polymer web app using Gulp-rev-all. However, Gulp-rev-all is replacing 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 have found a possible solution to how this should be corrected, but I honestly could not understand how to correct my case. (can be seen here https://github.com/smysnk/gulp-rev-all/issues/97)