ff-stream-web

git clone git://archive.git.mtrnord.blog/MTRNord/ff-stream-web.git
Log | Files | Refs | README | LICENSE

commit 24472d62776ebdfd76bdb7113244037aa39f2b04
parent c7eb6e8be971ae8466cf1b12dddc9cb0373638e4
Author: Konstantin Tarkus <hello@tarkus.me>
Date:   Thu, 28 May 2015 23:24:35 +0300

Merge branch 'seriallos-gulp-race-condition'

Diffstat:
Mgulpfile.js | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/gulpfile.js b/gulpfile.js @@ -52,9 +52,9 @@ gulp.task('assets', function() { // Bundle gulp.task('bundle', function(cb) { - var started = false; var config = require('./webpack.config.js'); var bundler = webpack(config); + var bundlerRunCount = 0; var verbose = !!argv.verbose; function bundle(err, stats) { @@ -73,8 +73,7 @@ gulp.task('bundle', function(cb) { cachedAssets: verbose })); - if (!started) { - started = true; + if (++bundlerRunCount == config.length) { return cb(); } }