Guest User

Untitled

a guest
Feb 18th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. const fs = require('fs');
  2.  
  3. /**
  4. * Delete the .map files
  5. * We do this to protect our source
  6. * @param files - array of source map files
  7. */
  8. function deleteFiles(files) {
  9. files.forEach(file => {
  10. const path = `${__dirname}/${file}`;
  11. fs.unlinkSync(path);
  12. });
  13. }
Add Comment
Please, Sign In to add comment