Skip to content

Commit

Permalink
Don't reload for each compiled script
Browse files Browse the repository at this point in the history
Fixes #447.
  • Loading branch information
silvenon committed Feb 3, 2016
1 parent 40fc7da commit 0efc144
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions app/templates/gulpfile.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ gulp.task('serve', ['styles', 'fonts'], () => {

gulp.watch([
'app/*.html',
<% if (includeBabel) { -%>
'.tmp/scripts/**/*.js',
<% } else { -%>
<% if (!includeBabel) { -%>
'app/scripts/**/*.js',
<% } -%>
'app/images/**/*',
Expand Down
1 change: 0 additions & 1 deletion test/babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ describe('Babel feature', function () {
assert.fileContent('gulpfile.babel.js', "gulp.task('scripts'");
assert.fileContent('gulpfile.babel.js', "['styles', 'scripts']");
assert.fileContent('gulpfile.babel.js', "['styles', 'scripts', 'fonts']");
assert.fileContent('gulpfile.babel.js', "'.tmp/scripts/**/*.js',");
assert.fileContent('gulpfile.babel.js', "gulp.watch('app/scripts/**/*.js', ['scripts'])");
assert.fileContent('gulpfile.babel.js', "'/scripts': '.tmp/scripts',");
});
Expand Down

0 comments on commit 0efc144

Please sign in to comment.