You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this gulpfile (simplified for this use case), that I've been using for awhile
//--------- Include referencesconstgulp=require('gulp'),del=require('del'),assetsPath='../Project.Web/Assets/';// more references here//--------- Define Pathsconstpaths={views: {index: 'dist/'}}// more paths here //--------- Clean filesfunctionclean(done){del.sync([(`${paths.views.index.dest}**/`,`${assetsPath}**/`)],{force: true});done();}// more functions here//--------- Create tasks gulp.task('clean',clean)// more tasks here//--------- Dist foldersgulp.task('build',gulp.series('clean',gulp.parallel(otherNotRelevantTasksHere)//---------Default taskgulp.task('default',gulp.series('build'))
Since I've updated the del package from 4.1.1 to 5.0.0 (or any newer version) the function itself runs but it doesn't delete the folders
I've read a few issues such as #93 or #94 or even #100 , but I couldn't find a solution for this.
Things I've tried:
make the function async, by using async function
using return and removing sync form del
even path.josix.join() but I'm not even using backward-slashes, although I'm in a windows environment.
I would appreciate any help on this because I'd like to keep this package in this project (without to reverse to 4.1.1)
The text was updated successfully, but these errors were encountered:
I have this gulpfile (simplified for this use case), that I've been using for awhile
Since I've updated the
del
package from 4.1.1 to 5.0.0 (or any newer version) the function itself runs but it doesn't delete the foldersI've read a few issues such as #93 or #94 or even #100 , but I couldn't find a solution for this.
Things I've tried:
async function
return
and removingsync
formdel
path.josix.join()
but I'm not even using backward-slashes, although I'm in a windows environment.I would appreciate any help on this because I'd like to keep this package in this project (without to reverse to 4.1.1)
The text was updated successfully, but these errors were encountered: