which codes snippet should I use ?
sourcemap:true,
gulp.task('typescript-options', function() {
gulp.src('./TypeScript/**/*.ts')
.pipe(tsc({
sourcemap:true,
target:'ES5'
}))
.pipe(gulp.dest('./build/TypeScript'));
});
sourcemaps.write()
gulp.task('typescript-options', function() {
gulp.src('./TypeScript/**/*.ts')
.pipe(tsc({
sourcemaps.write(),
target:'ES5'
}))
.pipe(gulp.dest('./build/TypeScript'));
});
https://github.com/ivogabe/gulp-typescript
https://github.com/floridoo/gulp-sourcemaps
该提问来源于开源项目:ivogabe/gulp-typescript