bugsnag / webpack-bugsnag-plugins

Webpack plugins for common BugSnag actions.
MIT License
32 stars 29 forks source link

fix: Allow publicPath to be empty string #39

Closed bengourley closed 5 years ago

bengourley commented 5 years ago

This supports the use case of targeting node with webpack, using the top level project directory as the target for the bundled js.

~Caveat: as you can see from the removed code, the library tried to be helpful as most users would want to set the publicPath either directly or via Webpack's output. This message is now not printed. It's hard to know how many people this helped.~

Update: the publicPath warning is now reinstated, but the build continues and the upload is attempted.

bjornbos commented 3 years ago

When I set the publicPath option of the BugsnagSourceMapUploaderPlugin to an empty string, it is overwritten with the value of my Webpack output.publicPath setting. How do I overwrite the Webpack output.publicPath setting with an empty string?