Last active
February 16, 2019 15:21
-
-
Save jonoirwinrsa/fff6f3029948d907bd903f46e99f2bca to your computer and use it in GitHub Desktop.
Upload Create React App sourcemaps to Bugsnag - Step 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
/** | |
* Delete the .map files | |
* We do this to protect our source | |
* @param files - array of source map files | |
*/ | |
function deleteFiles(files) { | |
files.forEach(file => { | |
const path = `${__dirname}/${file}`; | |
fs.unlinkSync(path); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment