Order when concat streams with event-stream in Gulp -


in gulp task, vendorfiles code placed after appfiles code in dest style.css file.

is because appfiles stream runs faster? how have vendorfiles code come before expected?

gulp.task('styles', function () {      var vendorfiles = gulp.src(mainbowerfiles()) // don't read         .pipe(gulpfilter('*.css'));      var appfiles = gulp.src('app/sass/*.scss')         .pipe(sass())         .pipe(prefix('> 5%'));      return es.concat(vendorfiles, appfiles)         .pipe(minifycss())         .pipe(concat('style.css'))         .pipe(gulp.dest('./dist/css')); }); 

solved gulp-order

gulp.task('scripts', function () {      var jsfilter = gulpfilter('*.js');     var vendorfiles = gulp.src(mainbowerfiles())         .pipe(jsfilter)         .pipe(concat('vendor.js'));      var appfiles = gulp.src('app/js/*.js')         .pipe(jshint())         .pipe(jshint.reporter('default'))         .pipe(concat('app.js'));      return eventstream.concat(vendorfiles, appfiles)         .pipe(order([             "vendor.js",             "app.js"         ]))         .pipe(concat('app.js'))         .pipe(uglify())         .pipe(gulp.dest('./dist/js')); }); 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -