From 4252740df80a93959d1f7625573600860bcd2305 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 25 Jan 2018 16:11:27 -0600 Subject: [PATCH] Added task to delete copy-assets files (safe src dir) --- gulpfile.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index c76e807..58f9553 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -247,6 +247,11 @@ gulp.task('copy-assets', function() { return stream; }); +// Deleting the files distributed by the copy-assets task +gulp.task('clean-vendor-assets', function () { + return del([paths.dev+'/js/bootstrap4/**', paths.dev+'/sass/bootstrap4/**', './fonts/*wesome*.{ttf,woff,woff2,eof,svg}', paths.dev+'/sass/fontawesome/**', paths.dev+'/sass/underscores/**', paths.dev+'/js/skip-link-focus-fix.js', paths.js+'/**/skip-link-focus-fix.js', paths.js+'/**/popper.min.js', paths.js+'/**/popper.js', (paths.vendor!=''?(paths.js+paths.vendor+'/**'):'')]); +}); + // Run // gulp dist // Copies the files to the /dist folder for distribution as simple theme