gulp-ts-path-alias
v1.0.3
Published
Gulp Task to transform Typescript path imports into relative paths using the tsconfig
Downloads
4
Readme
gulp-ts-path-alias
https://gist.github.com/azarus/f369ee2ab0283ba0793b0ccf0e9ec590
Usage
npm install --save-dev gulp-ts-path-alias
Then, add it to your gulpfile.js
:
Simple
var alias = require('gulp-ts-path-alias');
gulp.task('test', function(){
gulp.src(['./src/**/*.js'])
.pipe(alias('.', {
"@/*": ["app/*"]
}))
.pipe(gulp.dest('dist'));
});