#How to generate routes using vite plugin without starting vite dev server?

6 messages · Page 1 of 1 (latest)

fringe geyser
#

This might be more of a Vite question...

Currently using @tanstack/router-plugin and sometimes I make trivial changes that will update the generated routes file. Is there a way of regenerating it without starting up the vite dev server?

unique pine
#

router as a CLI as well

#

but why not keep the dev server running?

#

that's what we recommend

fringe geyser
#

yeah i took a look at the cli - probably what I'm looking for.

usually i keep the dev server running but it's running as part of a multi-step process (electron app) so there are many occasions where I shut it down indirectly

#

i have this inconvenience for other vite plugins that generate files so i was hoping that there was some vite subcommand that I could invoke to hook into the work done while in dev mode 😅