mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-25 04:50:18 +00:00
Invert the filter for static file copying
A better name would have been "include" instead of "filter".
This commit is contained in:
parent
a0c5bfc64c
commit
0b9c6bee8a
1 changed files with 3 additions and 1 deletions
|
@ -43,7 +43,9 @@ export const defaultBuildOptions = {
|
|||
src: "./src/",
|
||||
dest: "./dist/",
|
||||
recursive: true,
|
||||
filter: (src) => files.includes(src) || ignore.includes(src),
|
||||
|
||||
// Return true if the file should be copied and false otherwise.
|
||||
filter: (src) => ![...files, ...ignore].includes(src),
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue