gulp.task('cssoModule', ['copyModule'], function() { return gulp.src('./dist/module/*/*.css',function(err,files) { console.log("cssoModule ERROR: "+err); files.map(function (entry) { var destUrl = entry.substring(0,entry.lastIndexOf('/')); console.log(destUrl); csso() .pipe(gulp.dest(destUrl)); }) }) });
This is invalid. I don’t know if gulp has written it wrong. Both addresses destUrl can be obtained.
It’s better to have enough food and clothing by yourself
http://www.gulpjs.com.cn/docs...
No Chinese characters appear in the directory