Skip to content

Commit e03b6b3

Browse files
author
Fabian Morón Zirfas
authored
Merge pull request #6 from mudcube/patch-1
Do not concat hidden files (such as .DS_Store) @mudcube Thanks for the PR. I didn't think about the hidden files
2 parents 8213dbf + 485bf86 commit e03b6b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/concat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ fs.writeFileSync(path.resolve(process.cwd(), bundlePath), '');
1010
// loop folders
1111
folders.forEach(folder => {
1212
fs.readdir(folder, (err, files) => {
13+
files = files.filter(file => !(/(^|\/)\.[^\/\.]/g).test(file))
1314
files.forEach(file => {
1415
// console.log(file);
1516
let filePath = path.resolve(process.cwd(), `${folder}${file}`);
@@ -23,5 +24,4 @@ folders.forEach(folder => {
2324
});
2425
});
2526
});
26-
2727
});

0 commit comments

Comments
 (0)