Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

b3nten/vite-plugin-tsr-cli

Repository files navigation


Archí

vite-plugin-tsr-cli

Vite Plugin for Tanstack Router CLI Route Gen

Npm package yearly downloads GitHub stars NuGet stable version

Use the Tanstack Router CLI directly in Vite.

Usage

import { defineConfig } from "vite"
import react from "@vitejs/plugin-react"
import router from "vite-plugin-tsr-cli";

export default defineConfig({
  plugins: [react(), router()]
})

The default route directory is ./src/routes with the generated file living at ./src/routes.gen.ts.

The available plugin options are the same as the CLI Options, and can be defined in the vite config or in a tsr.config.json file in the root directory. Settings defined in the file take precedence over those defined in the vite config.

License

Made with 💚

Published under MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published