fusion-cli icon indicating copy to clipboard operation
fusion-cli copied to clipboard

Allow configuring 'source-map' instead of 'hidden-source-map' for production builds.

Open lxe opened this issue 7 years ago • 1 comments

Fusion-cli correctly .map files for production builds, but uses hidden-source-map webpack config, which omits the //# sourceMappingURL comment at the end of the source files.

From https://webpack.js.org/configuration/devtool/:

hidden-source-map - Same as source-map, but doesn't add a reference comment to the bundle. Useful if you only want SourceMaps to map error stack traces from error reports, but don't want to expose your SourceMap for the browser development tools.

For many projects, it's useful to expose hidden source maps to devtools to allow debugging in production.

I'd like to propose an option to use 'source-map' instead if 'hidden-source-map'

lxe avatar Apr 19 '19 16:04 lxe

Sounds good. Could you put up a PR for this?

mlmorg avatar May 03 '19 20:05 mlmorg