vite-plugin-sitemap 0.3.0 → 0.4.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 CHANGED
@@ -137,6 +137,13 @@ Last modification option for sitemap.
137
137
 
138
138
  Converts XML into a human readable format
139
139
 
140
+ ### generateRobotsTxt
141
+
142
+ - **Type:** `boolean`
143
+ - **Default:** `true`
144
+
145
+ Enables robots.txt file generation
146
+
140
147
  ### robots
141
148
 
142
149
  - **Type:** `RobotOption[]`
package/dist/index.d.ts CHANGED
@@ -46,6 +46,12 @@ interface Options {
46
46
  * @default []
47
47
  */
48
48
  exclude: string[];
49
+ /**
50
+ * String with base path.
51
+ * Example: '/mysubpath'
52
+ * @default ''
53
+ */
54
+ basePath: string;
49
55
  /**
50
56
  * Output directory
51
57
  * @default 'dist'
@@ -73,17 +79,22 @@ interface Options {
73
79
  */
74
80
  lastmod: Date;
75
81
  /**
76
- * Converts XML into a human readable format
82
+ * Converts XML into a human-readable format
77
83
  * @default false
78
84
  */
79
85
  readable: boolean;
86
+ /**
87
+ * Enables robots.txt file generation
88
+ * @default true
89
+ */
90
+ generateRobotsTxt: boolean;
80
91
  /**
81
92
  * Robots policy
82
93
  * @default [{ userAgent: '*', allow: '/' }]
83
94
  */
84
95
  robots: RobotOption[];
85
96
  }
86
- declare type UserOptions = Partial<Options>;
97
+ type UserOptions = Partial<Options>;
87
98
 
88
99
  declare function sitemapPlugin(options?: UserOptions): {
89
100
  name: string;