honeybadger-js
honeybadger-js copied to clipboard
Add an option to remove local source map after upload
Package Name: @honeybadger-io/webpack
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"
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.
removeSourcemaps
works for me.
@subzero10 maybe you could look at this one when you look at honeybadger-io/honeybadger-js#880.