Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Commit

Permalink
Ignore bang when asserting files exist - closes #429
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Feb 7, 2016
1 parent 7881b51 commit 1a26399
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ Logger.files = function(files, checkForFiles) {
* @return {boolean}
*/
var assertFileExists = function(file) {
// If this file begins with a !, then the user
// intends to exclude it from their src set.
if (file.indexOf('!') == 0) {
file = file.slice(1);
}

return file.match(/\*/) || fs.existsSync(file);
};

Expand Down

0 comments on commit 1a26399

Please sign in to comment.