updating gulp scripts task - Thx @jimkrill
This commit is contained in:
parent
e43c51821a
commit
1d30918230
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
19
gulpfile.js
19
gulpfile.js
|
@ -142,7 +142,7 @@ gulp.task('watch-bs', ['browser-sync', 'watch', 'cssnano', 'scripts'], function
|
|||
// gulp scripts.
|
||||
// Uglifies and concat all JS files into one
|
||||
gulp.task('scripts', function() {
|
||||
gulp.src([
|
||||
var scripts = [
|
||||
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
||||
basePaths.dev + 'js/tether.js', // Must be loaded before BS4
|
||||
|
||||
|
@ -152,23 +152,14 @@ gulp.task('scripts', function() {
|
|||
// End - All BS4 stuff
|
||||
|
||||
basePaths.dev + 'js/skip-link-focus-fix.js'
|
||||
])
|
||||
];
|
||||
gulp.src(scripts)
|
||||
.pipe(concat('theme.min.js'))
|
||||
.pipe(uglify())
|
||||
.pipe(gulp.dest('./js/'));
|
||||
|
||||
gulp.src([
|
||||
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
||||
basePaths.dev + 'js/tether.js', // Must be loaded before BS4
|
||||
|
||||
// Start - All BS4 stuff
|
||||
basePaths.dev + 'js/bootstrap4/bootstrap.js',
|
||||
|
||||
// End - All BS4 stuff
|
||||
|
||||
basePaths.dev + 'js/skip-link-focus-fix.js'
|
||||
])
|
||||
.pipe(concat('theme.js'))
|
||||
gulp.src(scripts)
|
||||
.pipe(concat('ctheme.js'))
|
||||
.pipe(gulp.dest('./js/'));
|
||||
});
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue