vite-plugin-sitemap 0.5.0 → 0.5.1
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.d.ts +6 -3
- package/dist/index.js +1245 -1110
- package/dist/index.mjs +1213 -1065
- package/package.json +1 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,9 @@ interface RobotOption {
|
|
|
25
25
|
*/
|
|
26
26
|
cleanParam?: string;
|
|
27
27
|
}
|
|
28
|
+
type RoutesOptionMap<T> = T | {
|
|
29
|
+
[key: string]: T;
|
|
30
|
+
};
|
|
28
31
|
/**
|
|
29
32
|
* Plugin options.
|
|
30
33
|
*/
|
|
@@ -67,17 +70,17 @@ interface Options {
|
|
|
67
70
|
* Change frequency option for sitemap
|
|
68
71
|
* @default 'daily'
|
|
69
72
|
*/
|
|
70
|
-
changefreq: string
|
|
73
|
+
changefreq: string | RoutesOptionMap<string>;
|
|
71
74
|
/**
|
|
72
75
|
* Priority option for sitemap
|
|
73
76
|
* @default 1
|
|
74
77
|
*/
|
|
75
|
-
priority: number
|
|
78
|
+
priority: number | RoutesOptionMap<number>;
|
|
76
79
|
/**
|
|
77
80
|
* Last modification option for sitemap
|
|
78
81
|
* @default new Date()
|
|
79
82
|
*/
|
|
80
|
-
lastmod: Date
|
|
83
|
+
lastmod: Date | RoutesOptionMap<Date>;
|
|
81
84
|
/**
|
|
82
85
|
* Converts XML into a human-readable format
|
|
83
86
|
* @default false
|