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.
This commit is contained in:
Riku Rouvila
2015-10-02 10:53:11 +03:00
parent 873d9af3e2
commit 8b3b5c5e19

View File

@@ -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)