From 8b3b5c5e1938460101736c9b051990eabadb1df9 Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Fri, 2 Oct 2015 10:53:11 +0300 Subject: [PATCH] fix task running order Style and script files should be created before templates task so gulp-inject can find the built files and inject them. --- gulpfile.babel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index 6819da4..dedc6d5 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -89,7 +89,7 @@ gulp.task('scripts', () => { return pipeline.pipe(gulp.dest(config.scripts.destination)); }); -gulp.task('templates', production ? ['styles', 'scripts'] : [], () => { +gulp.task('templates', ['styles', 'scripts'], () => { const resources = gulp.src(config.inject.resources, {read: false}); const pipeline = gulp.src(config.templates.source)