Skip to content

Commit 0286817

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

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

templates/app/gulpfile.babel(gulp).js

+5-2
Original file line numberDiff line numberDiff line change
@@ -557,21 +557,24 @@ gulp.task('build', cb => {
557557
'inject',
558558
'wiredep:client',<% if(filters.ts) { %>
559559
'typings',<% } %>
560+
[
561+
'transpile:client',
562+
'transpile:server'
563+
],
560564
[
561565
'build:images',
562566
'copy:extras',
563567
'copy:fonts',
564568
'copy:assets',
565569
'copy:server',
566-
'transpile:server',
567570
'build:client'
568571
],
569572
cb);
570573
});
571574

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

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

577580
var appFilter = plugins.filter('**/app.js', {restore: true});

0 commit comments

Comments
 (0)