vite-plugin-sitemap 0.8.2 → 0.9.0
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/README.md +9 -2
- package/dist/index.d.ts +10 -3
- package/dist/index.js +8886 -10741
- package/dist/index.mjs +8886 -10741
- package/package.json +23 -14
package/README.md
CHANGED
|
@@ -89,7 +89,9 @@ Array of strings with excluded routes.
|
|
|
89
89
|
export default {
|
|
90
90
|
plugins: [
|
|
91
91
|
Vue(),
|
|
92
|
-
Sitemap({
|
|
92
|
+
Sitemap({
|
|
93
|
+
exclude: ['/admin', '/private']
|
|
94
|
+
}),
|
|
93
95
|
],
|
|
94
96
|
}
|
|
95
97
|
```
|
|
@@ -105,7 +107,12 @@ Array of strings with other sitemaps paths or urls.
|
|
|
105
107
|
|
|
106
108
|
```js
|
|
107
109
|
generateSitemap({
|
|
108
|
-
externalSitemaps: [
|
|
110
|
+
externalSitemaps: [
|
|
111
|
+
'sitemap_1',
|
|
112
|
+
'sitemap_2',
|
|
113
|
+
'subpath/sitemap_3',
|
|
114
|
+
'https://site.com/sitemap.xml'
|
|
115
|
+
]
|
|
109
116
|
})
|
|
110
117
|
```
|
|
111
118
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
interface NSArgs {
|
|
3
2
|
news: boolean;
|
|
4
3
|
video: boolean;
|
|
@@ -6,7 +5,6 @@ interface NSArgs {
|
|
|
6
5
|
image: boolean;
|
|
7
6
|
custom?: string[];
|
|
8
7
|
}
|
|
9
|
-
|
|
10
8
|
interface RobotOption {
|
|
11
9
|
/**
|
|
12
10
|
* User-agent value.
|
|
@@ -70,7 +68,7 @@ interface Options {
|
|
|
70
68
|
i18n?: {
|
|
71
69
|
defaultLanguage?: string;
|
|
72
70
|
languages: string[];
|
|
73
|
-
strategy?: 'suffix' | 'prefix';
|
|
71
|
+
strategy?: 'suffix' | 'prefix' | 'prefix_except_default';
|
|
74
72
|
};
|
|
75
73
|
/**
|
|
76
74
|
* Other sitemaps paths
|
|
@@ -131,6 +129,15 @@ interface Options {
|
|
|
131
129
|
* @default undefined
|
|
132
130
|
*/
|
|
133
131
|
xmlns?: NSArgs;
|
|
132
|
+
/**
|
|
133
|
+
* Split threshold. When the number of URLs exceeds this value,
|
|
134
|
+
* `sitemap.xml` becomes a sitemap index pointing to `sitemap-1.xml`,
|
|
135
|
+
* `sitemap-2.xml`, etc. Below the threshold a single `sitemap.xml`
|
|
136
|
+
* is produced (previous behavior). The sitemap protocol requires
|
|
137
|
+
* at most 50 000 URLs per file.
|
|
138
|
+
* @default 45000
|
|
139
|
+
*/
|
|
140
|
+
splitAt: number;
|
|
134
141
|
}
|
|
135
142
|
type UserOptions = Partial<Options>;
|
|
136
143
|
|