use-fs-access
Version:
A React hook that builds on top of the File System Access API to enable easy file and directory operations in modern browsers.
16 lines (15 loc) • 460 B
JavaScript
export const distFilter = async () => {
const isDist = (filePath) => {
return (filePath.includes("/dist") ||
filePath.includes("/out") ||
filePath.includes("/build") ||
filePath.includes("/vendor") ||
filePath.includes("/node_modules") ||
filePath.includes("/.next"));
};
return {
ignore: async (filePath, _) => {
return isDist(filePath);
},
};
};