@wroud/vite-plugin-ssg
Version:
A Vite plugin for static site generation (SSG) with React. Renders React applications to static HTML for faster load times and improved SEO.
13 lines • 563 B
JavaScript
/**
* Checks if content appears to be a Git LFS pointer file.
* Git LFS pointer files start with "version https://git-lfs.github.com/spec"
* and should not be inlined as they are placeholders.
*
* @param content - The file content to check
* @returns true if the content appears to be a Git LFS pointer
*/
export function isGitLfsPlaceholder(content) {
const text = typeof content === "string" ? content : content.toString("utf8");
return text.startsWith("version https://git-lfs.github.com/spec");
}
//# sourceMappingURL=isGitLfsPlaceholder.js.map