I have next structure.
html5
|_33
|_2.2.0
|_js
|_file1.js
|_file2.js
|_file3.js
|_22
|_2.2.0
|_js
|_file1.js
|_file2.js
|_file3.js
|_24
|_2.2.0
|_js
|_file1.js
|_file2.js
|_file3.js
html5prod
|_33
|_2.2.0
|_js
|_file1(minify).js
|_file2(minify).js
|_file3(minify).js
From folder html5 I want move minified files in html5prod.
If its one folder I can write
gulp.task('scripts', function() {
return gulp.src('./html5/**/*.js')
.pipe(uglify())
.pipe(concat('min.js', {newLine: ';'}))
.pipe(gulp.dest('./html5prod/24/2.2.0/js'));
});
How write destination for all folders in this string?
.pipe(gulp.dest('./html5prod/24/2.2.0/js'));
Result will be next, from folder html5 > 24 go in html5prod > 24, from html5 > 33 go in html5prod > 33