https://gist.github.com/azarus/f369ee2ab0283ba0793b0ccf0e9ec590
npm install --save-dev gulp-ts-path-alias
Then, add it to your gulpfile.js
:
var alias = require('gulp-ts-path-alias');
gulp.task('test', function(){
return gulp.src(['./src/**/*.js'])
.pipe(alias('.', {
"@/*": ["app/*"]
}))
.pipe(gulp.dest('dist'));
});