Merge pull request #677 from 0dp/patch-5 - Thx @0dp !

Proposal fix for missing js rev
This commit is contained in:
Holger 2018-05-18 11:56:23 +02:00 committed by GitHub
commit dd6405b3b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -140,7 +140,7 @@ gulp.task( 'browser-sync', function() {
// Run: // Run:
// gulp watch-bs // gulp watch-bs
// Starts watcher with browser-sync. Browser-sync reloads page automatically on your browser // 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: // Run:
@ -163,13 +163,12 @@ gulp.task( 'scripts', function() {
gulp.src( scripts ) gulp.src( scripts )
.pipe( concat( 'theme.min.js' ) ) .pipe( concat( 'theme.min.js' ) )
.pipe( uglify() ) .pipe( uglify() )
.pipe( gulp.dest( paths.js ) ); .pipe( gulp.dest( paths.js ) )
rev();
gulp.src( scripts ) gulp.src( scripts )
.pipe( concat( 'theme.js' ) ) .pipe( concat( 'theme.js' ) )
.pipe( gulp.dest( paths.js ) ); .pipe( gulp.dest( paths.js ) );
rev();
}); });
// Deleting any file inside the /src folder // Deleting any file inside the /src folder