Skip to content

Commit 6f53ab9

Browse files
committed
gulpfile. add commented out lines for sourcemap generation.
1 parent 924e1f1 commit 6f53ab9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lighthouse-extension/gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ gulp.task('browserify-lighthouse', () => {
101101
'app/src/lighthouse-background.js'
102102
], {read: false})
103103
.pipe(tap(file => {
104-
let bundle = browserify(file.path); // , {debug: true})
104+
let bundle = browserify(file.path); // , {debug: true}); // for sourcemaps
105105
bundle = applyBrowserifyTransforms(bundle);
106106

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

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

0 commit comments

Comments
 (0)