Proposal fix for missing js rev

This commit is contained in:
Johan Nielsen 2018-05-17 18:05:52 +02:00 committed by GitHub
parent 6fe0a7d614
commit 75ed81b276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -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