dimanche 19 avril 2015

gulp-recursive-concat with slashes on windows?

I have an issue with gulp-recursive-concat. Everything worked until today.


Here is the task :



gulp.task ('concatenate', function ()
{
return gulp.src ('./public/js_dev/**/*.js')
.pipe (recursiveConcat ({dist: './public/js/', extname: ".js"}))
.pipe (stripDebug ())
.pipe (uglify ())
.pipe (gulp.dest ('./public/js/'));
});


When I open utils.js used by gulp-recursice-concat, a test based on a regexp is made :



var arrayFolders = (base + dirname).match(/[a-zA-Z0-9_-]+\/+/gi),
folderName = arrayFolders[arrayFolders.length -1];
folderName = folderName.replace("/", "");


But the problem is (base + dirname) doesn't contain any slashes but only backslashes, so the program crashes on the next line because arrayFolders is null.


Why the package has suddently stopped working ? I tried to remove and install it again with no success.


Aucun commentaire:

Enregistrer un commentaire