Closed vdraceil closed 2 years ago
@darthmeme Is there any chance you could find some time to check this over and merge, please? I'd love to help and keep this plugin maintained but seeing PRs like this one getting stale is not encouraging.
Apologies for the extremely long wait. v1.3.0
has been published with these changes.
Right now, the rss feed by default is generated in the
static
dir. The static dir is one of the directories where we have checked-in files and we do not want build-generated files to fall in there too (then git too marks it as a new file ready for check-in; which we dont want). Of course there is the option of configuring the output dir, but since the hook isbeforeBuild
even if we configure thedist
dir to be the output it won't work - because, this plugin will be the first to create thedist
dir and it will be deleted+re-created by the build processes (fresh distribution files has to be created ongridsome build
, so) there by making it feel that the rss.xml was never generated at all.So, I moved the hook to
afterBuild
and made thedist
dir (or whatever is configured by the user as the build output dir) as the default outputDir.