gulp-source-url

0.1.2 • Public • Published

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/'))

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-source-url

Weekly Downloads

3

Version

0.1.2

License

MIT

Last publish

Collaborators

  • rschmukler