Skip to content

Commit

Permalink
remove unwanted sourceMappingURL in build file
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Jan 7, 2017
1 parent b910054 commit 4d479c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ gulp.task('default', [/*'lint',*/ 'test', 'build']);
gulp.task('build', function () {
return gulp.src('src/browser-extensions/pdfMake.js')
.pipe(webpack(require('./webpack.config.js'), null, reportWebPackErrors))
.pipe(replace(/\/[*/][@#]\s+sourceMappingURL=((?:(?!\s+\*\/).)*).*\n/g, ''))
.pipe(gulp.dest('build'))
.pipe(sourcemaps.init())
.pipe(uglify(uglifyOptions))
Expand Down

0 comments on commit 4d479c3

Please sign in to comment.