Commit 7a9b6ba3 authored by Nick Stenning's avatar Nick Stenning Committed by GitHub

Merge pull request #271 from hypothesis/remove-boot-script-sourcemap-bundle

Remove sourcemap link from boot script
parents 9ea3437a 61bb2fd1
......@@ -284,6 +284,9 @@ function generateBootScript(manifest) {
.pipe(replace('__MANIFEST__', JSON.stringify(manifest)))
.pipe(replace('__ASSET_ROOT__', defaultAssetRoot))
.pipe(replace('__SIDEBAR_APP_URL__', defaultSidebarAppUrl))
// Strip sourcemap link. It will have been invalidated by the previous
// replacements and the bundle is so small that it isn't really valuable.
.pipe(replace(/^\/\/# sourceMappingURL=[^ ]+$/m,''))
.pipe(rename('boot.js'))
.pipe(gulp.dest('build/'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment