Source maps are not generated when using the plugin on 2.1.0-beta.2*
devtool: source-map
Having this plugin on (with or without sourceMap: true) will cause the UglifyJsPlugin not to generate source maps.
@phaistonian Thanks for reporting it.. will try to fix it as soon as possible.
This is tricky to get it right as of now. Until https://github.com/vigneshshanmugam/optimize-js-plugin/issues/2 it is addressed which again depends on the optimize-js, It will break the source map generation or replace the source map from other plugins. Will fix it once it lands.
Thanks for the heads-up:)
Same problem here!
using stable 2.2.1 source maps still not generated
status?
Its tough to get it right as I already mentioned in the previous comment. I could hack in to the source map generation from the webpack bundle but that would not be the right source map applied after the optimize-js plugin since the AST becomes different now
The best place to resolve is in optimize-js and its already discussed here https://github.com/nolanlawson/optimize-js/pull/25
Please do share if you have any other ideas.