Skip to content

Gulp Task to transform Typescript path imports into relative paths using the tsconfig

Notifications You must be signed in to change notification settings

ChobitsSP/gulp-ts-path-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(){
  return gulp.src(['./src/**/*.js'])
    .pipe(alias('.', {
      "@/*": ["app/*"]
    }))
    .pipe(gulp.dest('dist'));
});

About

Gulp Task to transform Typescript path imports into relative paths using the tsconfig

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published