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.js
CHANGED
|
@@ -43,7 +43,7 @@ __export(src_exports, {
|
|
|
43
43
|
});
|
|
44
44
|
module.exports = __toCommonJS(src_exports);
|
|
45
45
|
|
|
46
|
-
// node_modules/.pnpm/sitemap-ts@0.1.
|
|
46
|
+
// node_modules/.pnpm/sitemap-ts@0.1.5/node_modules/sitemap-ts/dist/index.mjs
|
|
47
47
|
var import_fs = __toESM(require("fs"), 1);
|
|
48
48
|
var import_stream = __toESM(require("stream"), 1);
|
|
49
49
|
var import_readline = __toESM(require("readline"), 1);
|
|
@@ -8356,6 +8356,20 @@ function sitemapPlugin(options = {}) {
|
|
|
8356
8356
|
name: "vite-plugin-sitemap",
|
|
8357
8357
|
closeBundle() {
|
|
8358
8358
|
generateSitemap(options);
|
|
8359
|
+
},
|
|
8360
|
+
transformIndexHtml() {
|
|
8361
|
+
return [
|
|
8362
|
+
{
|
|
8363
|
+
tag: "link",
|
|
8364
|
+
injectTo: "head",
|
|
8365
|
+
attrs: {
|
|
8366
|
+
rel: "sitemap",
|
|
8367
|
+
type: "application/xml",
|
|
8368
|
+
title: "Sitemap",
|
|
8369
|
+
href: "/sitemap.xml"
|
|
8370
|
+
}
|
|
8371
|
+
}
|
|
8372
|
+
];
|
|
8359
8373
|
}
|
|
8360
8374
|
};
|
|
8361
8375
|
}
|