gulp-source-url
v0.1.2
Published
Source URLs for files run though with gulp
Downloads
116
Readme
gulp-source-url
Add sourceUrl comments to gulp files. Useful for things like gulp-concat
and
gulp-surgeon
.
Example
var sourceUrls = require('gulp-source-urls');
gulp.src('./lib/*.js')
.pipe(sourceUrls())
.pipe(concat('out.js'))
.pipe(gulp.dest('public/'))
Configuring
Relative Paths
You can optionally pass a path in, in which case the paths will be relative that path. For example:
var sourceUrls = require('gulp-source-urls');
gulp.src('./lib/**/*.js')
.pipe(sourceUrls('./lib'))
.pipe(concat('out.js'))
.pipe(gulp.dest('public/'))