Hello. I use gulp and bower, and, to be honest, only a year later came the enlightenment that I use this bundle at 10% of all power. I use it now like this:
There is a simple bower task that goes in the array of subtasks in the watch task:
gulp.task('bower', function() { return bower({ directory: './dist/js/' }) }); Those. gulp stupidly copies all files from bower_components to build / js (all folders, to be exact).
Question: what are the ways to use this bundle to the maximum, that is, how to transfer all * .min.js files to / dist / js, and all * .min.css files to / dist / css? And even better, how to organize the concatenation of these files into one (js and css, naturally) - i.e. lib.min.js and lib.min.css? How will be more correct? Thank you in advance!