Skip to content

Instantly share code, notes, and snippets.

@cbfranca
Created September 4, 2017 16:46
Show Gist options
  • Save cbfranca/0f82f488cdbf510ad656df16d09e2547 to your computer and use it in GitHub Desktop.
Save cbfranca/0f82f488cdbf510ad656df16d09e2547 to your computer and use it in GitHub Desktop.
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'));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment