--outfile option incompatible with current method for generating external sourcemap
See original GitHub issueThe README states that if the user would like to have their sourcemap pushed to an external file, as opposed to inlined in the bundle itself, they should use exorcist
and pipe browserify’s output through exorcist
before writing the output file with >
.
If the user makes use of the the --outfile
(which doesn’t currently offer any real benefit over >
, but would if #995 were to be accepted :cough:), then this method of generating an external sourcemap isn’t an option, as browserify no longer pipes to process.stdout
and exorcist
has no input on which to act.
It would seem that allowing browserify to directly create an external sourcemap file by either providing the --debug
option with a filename as a value, or by adding a --debug-file
option would be useful.
I don’t know that this is directly resolvable within browserify, as sourcemap generation appears to be delegated to browser-pack
, so I’m hoping that @substack or someone else equally familiar with both packages could provide some input as to whether this is possible, or if it’s been discussed and rejected as a feature in the past.
Thanks.
Issue Analytics
- State:
- Created 9 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Top GitHub Comments
Then don’t use
-o
? I don’t see what’s so hard about:especially when the docs mention exorcist already and provide a handy example.
I can’t use
--outfile
when path to file contains not existed yet folder. Any ideas how can I configure it?dist
is not existed.My workaround:
And when I run
npm run build
, then prebuild is executed before and all is goo with browserify, But maybe there is a chance to configure browserify to create dist folder?