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
31
gulpfile.js
31
gulpfile.js
|
@ -142,33 +142,24 @@ 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([
|
||||
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
||||
basePaths.dev + 'js/tether.js', // Must be loaded before BS4
|
||||
var scripts = [
|
||||
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',
|
||||
// Start - All BS4 stuff
|
||||
basePaths.dev + 'js/bootstrap4/bootstrap.js',
|
||||
|
||||
// End - All BS4 stuff
|
||||
// End - All BS4 stuff
|
||||
|
||||
basePaths.dev + 'js/skip-link-focus-fix.js'
|
||||
])
|
||||
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
32
js/theme.js
32
js/theme.js
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