Include sourcemaps for the minified code
Modify the browserify build to generate source maps when the output is minified.
~~FWIW, there is minifyify module which should do exactly what we want. Except I was not able to make the example code from README work in html5/configure.js~~
Quoting browserify's readme:
If you prefer the source maps be saved to a separate .js.map source map file, you may use exorcist in order to achieve that. It's as simple as:
$ browserify main.js --debug | exorcist bundle.js.map > bundle.jsLearn about additional options here.
And the sample code:
browserify()
.require(require.resolve('./main'), { entry: true })
.bundle({ debug: true })
.pipe(exorcist(mapfile))
.pipe(fs.createWriteStream(path.join(__dirname, 'bundle.js'), 'utf8'))
Yes.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.