Skip to content

Commit 4db1066

Browse files
committed
fix(build): fix templateCache generation on gulpfile (angular-fullstack#1936)
Change execution order for gulp tasks 'transpile:client' and 'html' to fixe the templateCache generation. closes angular-fullstack#1936
1 parent 30bb316 commit 4db1066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/app/gulpfile.babel(gulp).js

+2-2
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ gulp.task('build', cb => {
571571

572572
gulp.task('clean:dist', () => del([`${paths.dist}/!(.git*|.openshift|Procfile)**`], {dot: true}));
573573

574-
gulp.task('build:client', ['transpile:client', 'styles', 'html', 'constant', 'build:images'], () => {
574+
gulp.task('build:client', ['styles', 'html', 'constant', 'build:images'], () => {
575575
var manifest = gulp.src(`${paths.dist}/${clientPath}/assets/rev-manifest.json`);
576576

577577
var appFilter = plugins.filter('**/app.js', {restore: true});
@@ -601,7 +601,7 @@ gulp.task('build:client', ['transpile:client', 'styles', 'html', 'constant', 'bu
601601
.pipe(gulp.dest(`${paths.dist}/${clientPath}`));
602602
});
603603

604-
gulp.task('html', function() {<% if(filters.jade) { %>
604+
gulp.task('html', ['transpile:client'], function() {<% if(filters.jade) { %>
605605
return gulp.src(`.tmp/{app,components}/**/*.html`)<% } else { %>
606606
return gulp.src(`${clientPath}/{app,components}/**/*.html`)<% } %>
607607
.pipe(plugins.angularTemplatecache({

0 commit comments

Comments
 (0)