Added task to delete copy-assets files (safe src dir)

This commit is contained in:
Sam 2018-01-25 16:11:27 -06:00
parent f710222051
commit 4252740df8
1 changed files with 5 additions and 0 deletions

View File

@ -247,6 +247,11 @@ gulp.task('copy-assets', function() {
return stream; 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 // Run
// gulp dist // gulp dist
// Copies the files to the /dist folder for distribution as simple theme // Copies the files to the /dist folder for distribution as simple theme