Skip to content

Commit 5503e73

Browse files
committed
fix(gulp): bangular is too fast, need to slow down. ping gulp-inject?
gulp-inject was totally erasing `index.html` when injection was too fast. this commit slow things down, in an ugly way, but it does the job for the moment.
1 parent dac0097 commit 5503e73

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/templates/gulpfile.js

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ gulp.task('watch', ['inject'], function () {
117117
'!client/filters/**/*.spec.js'
118118
], function () {
119119
gulp.src('client/index.html')
120+
.pipe($.wait(100))
120121
.pipe($.inject(gulp.src(toInject), { relative: true }))
121122
.pipe(gulp.dest('client'));
122123
});

app/templates/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"gulp-uglify": "^1.1.0",
2626
"gulp-usemin": "^0.3.11",
2727
"gulp-util": "^3.0.2",
28+
"gulp-wait": "^0.0.2",
2829
"gulp-watch": "^4.1.0",
2930
"karma": "^0.12.31",
3031
"karma-jasmine": "^0.3.5",

0 commit comments

Comments
 (0)