Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- });
- }
Add Comment
Please, Sign In to add comment