Fix possible race condition in build script
This fixes a potential race condition during the build process, where the 'browserify' task could attempt to run before the views had been compiled, resulting in build failure. This change makes the 'browserify' task wait for views to finish before running. Change-Id: I8358812a90caf006c18220b643347848f15779fe
This commit is contained in:
@@ -9,6 +9,6 @@ gulp.task('dev', ['clean'], function(cb) {
|
||||
|
||||
global.isProd = false;
|
||||
|
||||
runSequence(['styles', 'fonts', 'data', 'views', 'browserify'], 'watch', cb);
|
||||
runSequence(['styles', 'fonts', 'data', 'views'], 'browserify', 'watch', cb);
|
||||
|
||||
});
|
||||
|
||||
@@ -9,6 +9,6 @@ gulp.task('prod', ['clean'], function(cb) {
|
||||
|
||||
global.isProd = true;
|
||||
|
||||
runSequence(['styles', 'fonts', 'views', 'browserify'], 'gzip', cb);
|
||||
runSequence(['styles', 'fonts', 'views'], 'browserify', 'gzip', cb);
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user