How To Order The Compiling Of Javascript Files In Gulp
Hi I'm trying to fix the order of the js files that get compiled in my Gulp task. The order I need: '/_sources/js/libs/*.js' '/_sources/js/plugins/*.js' '/_sources/js/custom/*.js'
Solution 1:
Try this.
function compile_js(minify, folder) {
var jsLibs = gulp.src(folder+'/_sources/js/libs/*.js');
var jsPlugins = gulp.src(folder+'/_sources/js/plugins/*.js');
var jsCustom = gulp.src(folder+'/_sources/js/custom/*.js');
var jsComponents = gulp.src(folder+'/_components/*.js');
return streamqueue({ objectMode: true },
jsLibs,
jsPlugins,
jsCustom,
jsComponents
)
.pipe(concat('bitage_scripts.js'))
.pipe(gulpif(minify, uglify()))
.pipe(gulp.dest(folder+'/_assets/js'));
};
gulp.src(gulp.src('folder+'/_source/something'))
doesn't make sense.
Post a Comment for "How To Order The Compiling Of Javascript Files In Gulp"