Shell script to upload sourcemap files to bugsnag for angular ionic project
#assuming source maps as present in 'source-map' directory in your project
for f in www/*.js ; do f=${f#"www/"}; minifiedUrl="http://localhost/"$f; sourceMap="@source-map/"$f".map" #echo $sourceMap; curl --http1.1 https://upload.bugsnag.com/ -F apiKey=<your-key-here> -F appVersion=<your-app-version-here> -F minifiedUrl=$minifiedUrl -F sourceMap=$sourceMap; done
Comments
Post a Comment