vite-plugin-sitemap 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -32,7 +32,7 @@ var getFilename = () => fileURLToPath(import.meta.url);
|
|
|
32
32
|
var getDirname = () => path.dirname(getFilename());
|
|
33
33
|
var __dirname = /* @__PURE__ */ getDirname();
|
|
34
34
|
|
|
35
|
-
// node_modules/.pnpm/sitemap-ts@0.1.
|
|
35
|
+
// node_modules/.pnpm/sitemap-ts@0.1.5/node_modules/sitemap-ts/dist/index.mjs
|
|
36
36
|
import require$$0$1, { writeFileSync } from "fs";
|
|
37
37
|
import require$$0 from "stream";
|
|
38
38
|
import require$$2 from "readline";
|
|
@@ -8345,6 +8345,20 @@ function sitemapPlugin(options = {}) {
|
|
|
8345
8345
|
name: "vite-plugin-sitemap",
|
|
8346
8346
|
closeBundle() {
|
|
8347
8347
|
generateSitemap(options);
|
|
8348
|
+
},
|
|
8349
|
+
transformIndexHtml() {
|
|
8350
|
+
return [
|
|
8351
|
+
{
|
|
8352
|
+
tag: "link",
|
|
8353
|
+
injectTo: "head",
|
|
8354
|
+
attrs: {
|
|
8355
|
+
rel: "sitemap",
|
|
8356
|
+
type: "application/xml",
|
|
8357
|
+
title: "Sitemap",
|
|
8358
|
+
href: "/sitemap.xml"
|
|
8359
|
+
}
|
|
8360
|
+
}
|
|
8361
|
+
];
|
|
8348
8362
|
}
|
|
8349
8363
|
};
|
|
8350
8364
|
}
|