How can I get gulp-typescript to output to the same directory as the source file?

强颜欢笑 提交于 2019-12-05 01:33:30
ddprrt

If you have source files like that:

gulp.src(['path1/**/*.ts', 'path2/**/*.ts])

Than it's equal to that:

gulp.src(['./path1/**/*.ts', './path2/**/*.ts], { base: '.' })

Which means, you can put your destination to:

gulp.dest('.')

since that's the lowest common denominator. The rest is done by Gulp.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!