Skip to content
This repository was archived by the owner on Oct 6, 2025. It is now read-only.

Commit 86064df

Browse files
committed
Add includeOnly & exclude files option
1 parent 99ccee6 commit 86064df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

php-loader.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ const phpLoader = {
2525
nodir: true
2626
}).filter((file) => {
2727
return path.extname(file.path) === '.php';
28+
}).filter((file) => {
29+
var filename = file.path.split(langDirectory + path.sep)[1]
30+
return options.includeOnly.includes(filename);
31+
}).filter((file) => {
32+
var filename = file.path.split(langDirectory + path.sep)[1]
33+
return !options.exclude.includes(filename);
2834
}).forEach((file) => {
2935
var filename = file.path.split(langDirectory + path.sep)[1];
3036
var filename = filename.replace('\\', '/');

0 commit comments

Comments
 (0)