Answer the question
In order to leave comments, you need to log in
How to scatter uglify, minify js into directories?
There is a js folder and there are two more folders in it fold1, fold2 which also have js. How to build and minify js so that it is in different directories, that is, build in a new folder build/js/fold1 , build/js/fold2 but where the minified files will already be
Answer the question
In order to leave comments, you need to log in
https://gulpjs.com/
https://www.npmjs.com/package/gulp-uglify
https://www.youtube.com/watch?v=uPk6lQoTThE&list=P...
If you want to keep the sub-folders, you have to define the base in the options (2nd argument)
eg, to keep "assets/file.doc" in "dist/":
gulp.src(["assets/file.doc"], {base: "."})
.pipe(gulp.dest("dist/"));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question