Microflash/gridsome-plugin-feed

Work with development mode

cco3 opened this issue · 6 comments

cco3 commented

Right now the plugin doesn't seem to work in development mode, but it should be simple enough to add an endpoint to the express server.

Just curious, what are the usecases to have the feed generated in dev mode? Generation of sitemaps and feeds, and the injection of analytics scripts, etc. are usually the build-time concerns.

cco3 commented

If it's only being generated when the user requests it, it isn't necessarily a big deal. The goal is to decrease the disparity in behavior between dev and prod, keeping this smooth for developers to be able to tell if something's wrong while still in development mode.

I'll put this on the backlog as I wait for the upcoming upgrade of Gridsome to Vue.js 3.

I came here because I thought that the plugin was broken/installation had failed. There was NOTHING to indicate that I should never expect it to work in development mode.

Was the workflow of:

  1. Install
  2. Test and it fails
  3. Push to prod anyways and hope

expect?

Like seriously? My typical response to things that fail in testing is 'remove and find something else'. :(

You can always generate a production build on your development environment and see exactly what's being generated. I do plan to add a dev mode eventually.