honeybadger-js icon indicating copy to clipboard operation
honeybadger-js copied to clipboard

Add an option to remove local source map after upload

Open joshuap opened this issue 6 years ago • 4 comments

Package Name: @honeybadger-io/webpack

joshuap avatar Jan 12 '18 18:01 joshuap

You can also remove them from your package.json build script. Something like this:

"build": "rm -rf dist && webpack -p --config ./webpack/webpack-prod.config.js --colors && rm ./dist/assets/scripts/*.map"

gazpachu avatar Mar 21 '18 15:03 gazpachu

I could see about making this happen. Perhaps something like this:

new HoneybadgerWebpackPlugin({
  removeSourcemaps: boolean; // defaults to false
})

Where removeSourcemaps will just remove all sourcemaps after successfully uploading.

Other name options:

  • pruneSourcemaps
  • purgeSourcemaps
  • cleanSourcemaps

and any of the above with the AfterUpload suffix.

KonnorRogers avatar Mar 16 '21 03:03 KonnorRogers

removeSourcemaps works for me.

joshuap avatar Mar 16 '21 17:03 joshuap

@subzero10 maybe you could look at this one when you look at honeybadger-io/honeybadger-js#880.

joshuap avatar Aug 10 '22 19:08 joshuap