From a21d0973541a8e762dd22d653a21e3497076cadb Mon Sep 17 00:00:00 2001 From: zckrs Date: Thu, 17 Sep 2015 10:11:14 +0200 Subject: [PATCH] Enable webpack sourcemap with TS in gulp serve --- app/src/preprocessors.js | 2 +- app/templates/gulp/_watch.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/preprocessors.js b/app/src/preprocessors.js index f4da091c..cc8fdc44 100644 --- a/app/src/preprocessors.js +++ b/app/src/preprocessors.js @@ -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\''); } diff --git a/app/templates/gulp/_watch.js b/app/templates/gulp/_watch.js index 3da4f488..02f4b5df 100644 --- a/app/templates/gulp/_watch.js +++ b/app/templates/gulp/_watch.js @@ -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 { -%>