diff --git a/.gitignore b/.gitignore index b38db2f296f..5f99b9b2a47 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.DS_Store node_modules/ build/ diff --git a/deps/content.js b/deps/content.js index 0cddf4704be..647664d2481 100644 --- a/deps/content.js +++ b/deps/content.js @@ -249,6 +249,9 @@ class ContentLoader { const matchedFiles = globName === '*' ? dirContent : micromatch.match(dirContent, globName); for (const raw of matchedFiles) { + if (raw.startsWith('.')) { + continue; // never match .-files + } const fullPath = path.join(currentDir, raw); if (isDir(fullPath)) { recurse && pendingDir.push(fullPath);