Skip to content

Commit

Permalink
clarify excluding folders
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 30, 2023
1 parent 0e0f527 commit 8d8fb22
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Empty file.
4 changes: 4 additions & 0 deletions bin/tests/alpha/addons/main/addon.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[files]
exclude = [
".vscode/*"
]
3 changes: 3 additions & 0 deletions book/configuration/addon.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ exclude = [

[files]
exclude = [
".vscode/**/*", # Exclude all files in the .vscode folder
"data/*.psd",
]

Expand Down Expand Up @@ -61,12 +62,14 @@ exclude = [
## files

`files.exclude` is an array of glob patterns that will be excluded and not packed into the PBO.
It is important to note that this matches against files, not folders. To exclude a folder, you must use a glob pattern that matches all files in that folder.

**_/addons/banana/addon.toml_**

```toml
[files]
exclude = [
".vscode/**/*", # Exclude all files in the .vscode folder
"data/*.psd",
]
```
Expand Down

0 comments on commit 8d8fb22

Please sign in to comment.