From 75ed81b2762c5e1f6f25ffa30b5c94e0931e3597 Mon Sep 17 00:00:00 2001 From: Johan Nielsen Date: Thu, 17 May 2018 18:05:52 +0200 Subject: [PATCH 1/2] Proposal fix for missing js rev --- gulpfile.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 13f5075..c3a95c5 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -140,7 +140,7 @@ gulp.task( 'browser-sync', function() { // Run: // gulp watch-bs // Starts watcher with browser-sync. Browser-sync reloads page automatically on your browser -gulp.task( 'watch-bs', ['browser-sync', 'watch', 'scripts'], function() { +gulp.task( 'watch-bs', ['browser-sync', 'watch', 'scripts', 'rev'], function() { } ); // Run: @@ -161,15 +161,14 @@ gulp.task( 'scripts', function() { paths.dev + '/js/custom-javascript.js' ]; gulp.src( scripts ) - .pipe( concat( 'theme.min.js' ) ) + .pipe( concat( 'child-theme.min.js' ) ) .pipe( uglify() ) - .pipe( gulp.dest( paths.js ) ); + .pipe( gulp.dest( paths.js ) ) + rev(); gulp.src( scripts ) .pipe( concat( 'theme.js' ) ) .pipe( gulp.dest( paths.js ) ); - - rev(); }); // Deleting any file inside the /src folder From f226d1f40d54c43410ca5871c0059739e109ecb2 Mon Sep 17 00:00:00 2001 From: Johan Nielsen Date: Fri, 18 May 2018 10:02:12 +0200 Subject: [PATCH 2/2] Update gulpfile.js --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index c3a95c5..da320cc 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -161,7 +161,7 @@ gulp.task( 'scripts', function() { paths.dev + '/js/custom-javascript.js' ]; gulp.src( scripts ) - .pipe( concat( 'child-theme.min.js' ) ) + .pipe( concat( 'theme.min.js' ) ) .pipe( uglify() ) .pipe( gulp.dest( paths.js ) ) rev();