Commit 61bb2fd1 authored by Robert Knight's avatar Robert Knight

Make the sourcemap link regex stricter

The previous regex would have matched any line that happened to contain
the text 'sourceMappingURL'.
parent 4c1bd9fe
......@@ -286,7 +286,7 @@ function generateBootScript(manifest) {
.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.*/,''))
.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