Skip to content

Commit

Permalink
gulpfile. add commented out lines for sourcemap generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Jul 20, 2017
1 parent 924e1f1 commit 6f53ab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lighthouse-extension/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ gulp.task('browserify-lighthouse', () => {
'app/src/lighthouse-background.js'
], {read: false})
.pipe(tap(file => {
let bundle = browserify(file.path); // , {debug: true})
let bundle = browserify(file.path); // , {debug: true}); // for sourcemaps
bundle = applyBrowserifyTransforms(bundle);

// lighthouse-background will need some additional transforms, ignores and requires…
Expand Down Expand Up @@ -161,6 +161,7 @@ gulp.task('compilejs', () => {
retainLines: true, // Keep things on the same line (looks wonky but helps with stacktraces)
comments: false, // Don't output comments
shouldPrintComment: _ => false, // Don't include @license or @preserve comments either
// sourceMaps: 'both'
};

return gulp.src(['dist/scripts/lighthouse-background.js'])
Expand Down

0 comments on commit 6f53ab9

Please sign in to comment.