UNPKG

@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.

7 lines 293 B
import nodePath from "node:path"; export function getBaseInHTML(urlRelativePath, config) { return config.base === "./" || config.base === "" ? nodePath.posix.join(nodePath.posix.relative(urlRelativePath, ""), "./") : config.base; } //# sourceMappingURL=getBaseInHTML.js.map