What is the best way to disable debug data from a gulp production build? The documented way to disable debug data is:
myApp.config(['$compileProvider', function ($compileProvider) {
$compileProvider.debugInfoEnabled(false);
}]);
I'm using gulp-typescript to build the app. Since Typescript has no conditional compilation, I have no idea how I could set the parameter from true to false in a gulp production build without changing the code.
The only solution I can think of is to conditionally add debug.ts or release.ts to the gulp.src for gulp-typescript. Do you know a better solution?