Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
craigulliott committed Oct 31, 2016
1 parent fb0cb9f commit 8937c7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ module.exports = function (fileName) {
var fileContents = new Buffer(compiledParserSource);
combinedFile.contents = fileContents;

// remove other files
this.length = 0;
// add this new file
this.push(combinedFile);
cb();
};
Expand Down

0 comments on commit 8937c7a

Please sign in to comment.