Closed Psvensso closed 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.
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 :)
Thanks, closed with https://github.com/mikach/gulp-concat-sourcemap/commit/fd5295cbed830e9036ff0eedd03792d514527092
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.