mikach / gulp-concat-sourcemap

Concatenate files and generate a source map file.
30 stars 9 forks source link

sourceMappingURL relative root #6

Closed Psvensso closed 10 years ago

Psvensso commented 10 years ago

in the following example

gulp.task('js', function() { return gulp.src('source/clientside/*/.js') .pipe(map('all.js', { prefix: 2, sourceRelavtiveBase: '/scripts/' })) .pipe(gulp.dest('dist/scripts')) });

The source map url needs to be relative to site base. (E.g. //# sourceMappingURL=/scripts/all.js.map) This option allows for the user to change the relative path.

Psvensso commented 10 years ago

This was a bit of a haste work i´m sure someone can clean it up a bit but hopefully the general thought is there at least :)

mikach commented 10 years ago

Thanks, closed with https://github.com/mikach/gulp-concat-sourcemap/commit/fd5295cbed830e9036ff0eedd03792d514527092