Skip to content

Commit

Permalink
Fix sourcemaps generation config. Fixes #208
Browse files Browse the repository at this point in the history
  • Loading branch information
eriwen committed Jan 7, 2020
1 parent 4d60ccc commit c597ba1
Show file tree
Hide file tree
Showing 10 changed files with 1,133 additions and 1,469 deletions.
5 changes: 3 additions & 2 deletions dist/stacktrace-with-promises-and-json-polyfills.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/stacktrace-with-promises-and-json-polyfills.js.map

This file was deleted.

4 changes: 2 additions & 2 deletions dist/stacktrace-with-promises-and-json-polyfills.min.js

Large diffs are not rendered by default.

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/stacktrace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/stacktrace.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/stacktrace.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ gulp.task('dist', function() {
.pipe(vinylSourceStream(sources))
.pipe(gulp.dest('dist'))
.pipe(vinylBuffer())
.pipe(rename({extname: '.min.js'}))
.pipe(uglify())
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(uglify())
.pipe(rename({extname: '.min.js'}))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('dist'));

Expand All @@ -40,9 +40,9 @@ gulp.task('dist', function() {
.pipe(vinylBuffer())
.pipe(concat(sources.replace('.js', '-with-promises-and-json-polyfills.js')))
.pipe(gulp.dest('dist'))
.pipe(uglify())
.pipe(rename({extname: '.min.js'}))
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(uglify())
.pipe(rename({extname: '.min.js'}))
.pipe(sourcemaps.write('./'))
.pipe(gulp.dest('dist'));
});
Expand Down
Loading

0 comments on commit c597ba1

Please sign in to comment.