Skip to content

Commit 9112c19

Browse files
bz2steren
authored andcommitted
Read dependency sourcemaps on build (#47)
No effect on the contents of the minified source, but stripping the embedded sourcemap greatly reduces the size of the plain concat file and the final sourcemap generated.
1 parent 7ddf4e1 commit 9112c19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ gulp.task('test', function () {
4242

4343
gulp.task('dist', function() {
4444
return gulp.src(dependencies.concat(SRC_FILE))
45-
.pipe(sourcemaps.init())
45+
.pipe(sourcemaps.init({ loadMaps: true }))
4646
.pipe(concat(SRC_FILE.replace('.js', '-concat.js')))
4747
// This will output the non-minified version
4848
.pipe(gulp.dest(DEST))

0 commit comments

Comments
 (0)