Skip to content

Commit

Permalink
Merge pull request #794 from zckrs/typescript-sourcemap-serve
Browse files Browse the repository at this point in the history
Enable webpack sourcemap with TS in gulp serve
  • Loading branch information
Swiip committed Sep 17, 2015
2 parents ac01e9b + a21d097 commit da85465
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/preprocessors.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function(GulpAngularGenerator) {
GulpAngularGenerator.prototype.computeWatchTaskDeps = function computeInjectTaskDeps() {
this.watchTaskDeps = [];

if (this.props.jsPreprocessor.srcExtension === 'es6') {
if (this.props.jsPreprocessor.srcExtension === 'es6' || this.props.jsPreprocessor.srcExtension === 'ts') {
this.watchTaskDeps.push('\'scripts:watch\'');
}

Expand Down
2 changes: 1 addition & 1 deletion app/templates/gulp/_watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ gulp.task('watch', [<%- watchTaskDeps.join(', ') %>], function () {
}
});

<% if (props.jsPreprocessor.srcExtension !== 'es6') { -%>
<% if (props.jsPreprocessor.srcExtension !== 'es6' && props.jsPreprocessor.srcExtension !== 'ts') { -%>
<% if (props.jsPreprocessor.extension === 'js') { -%>
gulp.watch(path.join(conf.paths.src, '/app/**/*.js'), function(event) {
<% } else { -%>
Expand Down

0 comments on commit da85465

Please sign in to comment.