Skip to content

Commit

Permalink
issue 11ty#389 fixed, add check if the .gitignore is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
danielstaleiny committed Feb 16, 2019
1 parent 9378fc3 commit dfebc60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EleventyFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class EleventyFiles {
let dir = TemplatePath.getDirFromFilePath(ignorePath);
dirs.push(dir);

if (fs.existsSync(ignorePath)) {
if (fs.existsSync(ignorePath) && fs.statSync(ignorePath).size > 0) {
fileFound = true;
let ignoreContent = fs.readFileSync(ignorePath, "utf-8");
ignores = ignores.concat(
Expand Down

0 comments on commit dfebc60

Please sign in to comment.