From 0080c97fb42bd6ecacd14ff4300d18057dff4676 Mon Sep 17 00:00:00 2001 From: gustavo Date: Fri, 26 Aug 2016 22:03:29 +0200 Subject: [PATCH] gulp tasks: exclude index.html from gulp-rev --- gulp/gulp-my-tasks/tasks/tasks.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gulp/gulp-my-tasks/tasks/tasks.js b/gulp/gulp-my-tasks/tasks/tasks.js index c55d5d2..ae42cbc 100644 --- a/gulp/gulp-my-tasks/tasks/tasks.js +++ b/gulp/gulp-my-tasks/tasks/tasks.js @@ -197,6 +197,7 @@ module.exports = function(gulp, customConfig) { var cssFilter = plugins.filter('**/*.css', {restore: true}); var jsAppFilter = plugins.filter('**/app.min.js', {restore: true}); var jslibFilter = plugins.filter('**/lib.min.js', {restore: true}); + var indexHtmlFilter = plugins.filter(['**/*', '!**/index.html'], { restore: true }); var templateCache = config.temp + config.templateFile; var workersFile = config.temp + config.workersFile; @@ -258,7 +259,9 @@ module.exports = function(gulp, customConfig) { .pipe(jslibFilter.restore) // Take inventory of the file names for future rev numbers + .pipe(indexHtmlFilter) .pipe(plugins.rev()) + .pipe(indexHtmlFilter.restore) // Replace the file names in the html with rev numbers .pipe(plugins.revReplace()) -- 2.1.4