Fix race condition in gulp prod and dev tasks
This fixes a race condition in gulp tasks where the 'browserify' task would occasionally run before the 'views' task had finished, causing an exception to be thrown when it failed to find the generated templates. This makes the 'browserify' task wait for all other tasks to complete before running, so the templates will always be generated first. Change-Id: I17dd4cd234dc61b98ba9f0e5ab527d8798e28434
This commit is contained in:
parent
8c59d69528
commit
8c056702e3
|
@ -10,7 +10,7 @@ gulp.task('dev', ['clean'], function(cb) {
|
|||
global.isProd = false;
|
||||
|
||||
runSequence(
|
||||
['styles', 'fonts', 'images', 'data', 'vendor-js', 'views', 'browserify', 'dev-resources'],
|
||||
'watch', cb);
|
||||
['styles', 'fonts', 'images', 'data', 'vendor-js', 'views', 'dev-resources'],
|
||||
'browserify', 'watch', cb);
|
||||
|
||||
});
|
||||
|
|
|
@ -10,7 +10,7 @@ gulp.task('prod', ['clean'], function(cb) {
|
|||
global.isProd = true;
|
||||
|
||||
runSequence(
|
||||
['styles', 'fonts', 'images', 'vendor-js', 'views', 'browserify'],
|
||||
'gzip', cb);
|
||||
['styles', 'fonts', 'images', 'vendor-js', 'views'],
|
||||
'browserify', 'gzip', cb);
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue