Fix source map appended as base64

This commit is contained in:
Roman Gotsiy 2015-10-26 21:17:26 +02:00
parent 2d831f7a46
commit 53ea1008eb

View File

@ -34,7 +34,7 @@ gulp.task('concatDeps', ['bundleSfx'], function() {
gulp.src(JS_DEV_DEPS.concat([paths.redocBuilt])) gulp.src(JS_DEV_DEPS.concat([paths.redocBuilt]))
.pipe(sourcemaps.init({loadMaps: true})) .pipe(sourcemaps.init({loadMaps: true}))
.pipe(concat(paths.outputName)) .pipe(concat(paths.outputName))
.pipe(sourcemaps.write()) .pipe(sourcemaps.write('.'))
.pipe(gulp.dest(paths.output)) .pipe(gulp.dest(paths.output))
}); });
@ -43,7 +43,7 @@ gulp.task('bundleSfx', ['inlineTemplates'], function(cb) {
builder builder
.buildStatic(path.join(paths.tmp, paths.sourceEntryPoint), .buildStatic(path.join(paths.tmp, paths.sourceEntryPoint),
paths.redocBuilt, paths.redocBuilt,
{ globalName: 'Redoc', sourceMaps: true } { globalName: 'Redoc', sourceMaps: true, lowResSourceMaps: true }
) )
.then(function() { .then(function() {
cb(); cb();