Skip to content

Commit

Permalink
Merge pull request #201 from NIAEFEUP/bug/popup-reload
Browse files Browse the repository at this point in the history
changed klaw file filter
  • Loading branch information
thePeras authored Nov 6, 2024
2 parents 4cced69 + 64525cc commit 713ad1d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ const buildPopup = async () => {
await loadLastChangedFiles();
let shouldRunBool = false;
for await (const file of klaw("./popup", {
filter: (path) => {
return !(
path.includes("out") ||
path.includes("node_modules") ||
path.includes(".next") ||
path.includes(".parcel-cache")
);
filter: (filePath) => {
const dirs = filePath.split(path.sep);
const shouldExclude =
dirs.includes("out") ||
dirs.includes("node_modules") ||
dirs.includes(".next") ||
dirs.includes(".parcel-cache");
return !shouldExclude;
},
})) {
if (
Expand Down

0 comments on commit 713ad1d

Please sign in to comment.