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

Popular posts from this blog

MATLAB code for Circular Convolution using Matrix method

Positive number pipe in angular 2+