lib/render.js
function removeFile(q) {
      if (!q.length) {
        process.send(true);
        return;
      }

      const file = q.shift();
      rimraf(path.resolve(paths.output, file), { read: false }, () => {
        removeFile(q);
      });
    }
function removeFile(q) {
      if (!q.length) {
        process.send(true);
        return;
      }

      const file = q.shift();
      rimraf(path.resolve(paths.output, file), { read: false }, () => {
        removeFile(q);
      });
    }
function removeFile ( q ) { if ( ! q . length ) { process . send ( true ) ; return ; } const file = q . shift ( ) ; rimraf ( path . resolve ( paths . output , file ) , { read : false } , ( ) => { removeFile ( q ) ; } ) ; }
remove file by passing shorter queue
remove file by passing shorter queue