vite-sitemap
Version:
The plugin helps to automatically create a sitemap. A sitemap is like a map for search engines, telling them what pages you have on your site. This makes it easier for search engines to find website and urls!
21 lines (20 loc) • 465 B
TypeScript
export declare const unslash: (str: string) => string;
/**
* add slash from last of url or string
* @param str
* @returns
*/
export declare const adslash: (str: string) => string;
type SitemapOptions = {
baseURL?: string;
outputDir?: string;
urls?: string[];
filename?: string;
};
export default function sitemap(options?: SitemapOptions): {
name: string;
writeBundle(options: {
dir: string;
}): Promise<void>;
};
export {};