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.
|
// gulp scripts.
|
||||||
// Uglifies and concat all JS files into one
|
// Uglifies and concat all JS files into one
|
||||||
gulp.task('scripts', function() {
|
gulp.task('scripts', function() {
|
||||||
gulp.src([
|
var scripts = [
|
||||||
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
||||||
basePaths.dev + 'js/tether.js', // Must be loaded before BS4
|
basePaths.dev + 'js/tether.js', // Must be loaded before BS4
|
||||||
|
|
||||||
// Start - All BS4 stuff
|
// Start - All BS4 stuff
|
||||||
basePaths.dev + 'js/bootstrap4/bootstrap.js',
|
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(concat('theme.min.js'))
|
||||||
.pipe(uglify())
|
.pipe(uglify())
|
||||||
.pipe(gulp.dest('./js/'));
|
.pipe(gulp.dest('./js/'));
|
||||||
|
|
||||||
gulp.src([
|
gulp.src(scripts)
|
||||||
basePaths.dev + 'js/owl.carousel.min.js', // Must be loaded before BS4
|
.pipe(concat('ctheme.js'))
|
||||||
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'))
|
|
||||||
.pipe(gulp.dest('./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