mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-22 11:33:03 +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/",
|
src: "./src/",
|
||||||
dest: "./dist/",
|
dest: "./dist/",
|
||||||
recursive: true,
|
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