gridsome-plugin-rss icon indicating copy to clipboard operation
gridsome-plugin-rss copied to clipboard

Cannot find the generate xml file

Open mittalyashu opened this issue 6 years ago • 4 comments

Here's the configuration


			use: 'gridsome-plugin-rss',
			options: {
				contentTypeName: 'Post',
				feedOptions: {
					title: 'Test',
					feed_url: 'https://example.com/rss.xml',
					site_url: 'https://example.com'
				},
				feedItemOptions: node => ({
					title: node.title,
					url: 'https://example.com' + node.path,
					author: node.author
				}),
				output: {
					dir: './dist',
					name: 'rss.xml'
				}
			}
		}

mittalyashu avatar Feb 27 '19 14:02 mittalyashu

Hey @mittalyashu - sorry, I didn't see this earlier, for some reason GitHub didn't notify me when you opened this issue.

Can you make sure you're on v1.1.0?

darthmeme avatar Mar 03 '19 01:03 darthmeme

Yes, I am using the exact same version.

But it is not generating the xml file.

mittalyashu avatar Apr 27 '19 17:04 mittalyashu

Hey @mittalyashu I ran into the same issue. I can't find the genreated file when doing npm run serve.

However, if you run npm run build or gridsome build you'll see your xml file. Hope it helps! :v:


npm run serve -> :x: npm run build -> :heavy_check_mark:

cyrilf avatar Jun 09 '19 13:06 cyrilf

@mittalyashu Because you change the output dir to ./dist instead of ./static like the example, so the plugin can't put the file there because "dist" is regenerated.

eladcandroid avatar Aug 20 '19 08:08 eladcandroid