Update gulpfile.js
adding callback to copy-assets task to make it run with Gulp4
This commit is contained in:
parent
317c136a60
commit
401bcc9c6f
|
@ -160,7 +160,7 @@ gulp.task( 'watch-bs', gulp.series('browser-sync', 'watch', 'scripts'));
|
|||
// Copy all needed dependency assets files from bower_component assets to themes /js, /scss and /fonts folder. Run this task after bower install or bower update
|
||||
|
||||
////////////////// All Bootstrap SASS Assets /////////////////////////
|
||||
gulp.task( 'copy-assets', function() {
|
||||
gulp.task( 'copy-assets', function(done) {
|
||||
|
||||
////////////////// All Bootstrap 4 Assets /////////////////////////
|
||||
// Copy all JS files
|
||||
|
@ -188,6 +188,8 @@ gulp.task( 'copy-assets', function() {
|
|||
// _s JS files into /src/js
|
||||
gulp.src( `${paths.node}undescores-for-npm/js/skip-link-focus-fix.js` )
|
||||
.pipe( gulp.dest( `${paths.dev}/js` ) );
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
// Deleting the files distributed by the copy-assets task
|
||||
|
@ -232,4 +234,4 @@ gulp.task( 'compile', gulp.series( 'styles', 'scripts', 'dist' ));
|
|||
// Run:
|
||||
// gulp
|
||||
// Starts watcher (default task)
|
||||
gulp.task('default', gulp.series('watch'));
|
||||
gulp.task('default', gulp.series('watch'));
|
||||
|
|
Reference in New Issue