darthmeme / gridsome-plugin-rss

Generate an RSS feed from your Gridsome data store
16 stars 11 forks source link

Cannot find the generate xml file #1

Open mittalyashu opened 5 years ago

mittalyashu commented 5 years ago

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'
                }
            }
        }
darthmeme commented 5 years ago

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?

mittalyashu commented 5 years ago

Yes, I am using the exact same version.

But it is not generating the xml file.

cyrilf commented 5 years ago

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:

eladcandroid commented 4 years ago

@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.