Created
September 4, 2017 16:46
-
-
Save cbfranca/0f82f488cdbf510ad656df16d09e2547 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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