updating gulp scripts task - Thx @jimkrill

This commit is contained in:
Holger Könemann 2016-12-28 11:33:00 +01:00
parent e43c51821a
commit 1d30918230
6 changed files with 5311 additions and 45 deletions

2
css/theme.min.css vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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/'));
});

5279
js/ctheme.js Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

6
js/theme.min.js vendored

File diff suppressed because one or more lines are too long