Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.25 KB

File metadata and controls

49 lines (34 loc) · 1.25 KB

🪧 vite-plugin-kit-routes

📖 Read the doc

⚡️ Quick start

Install

npm i -D vite-plugin-kit-routes

Add to your Vite config

import { sveltekit } from '@sveltejs/kit/vite'
import { kitRoutes } from 'vite-plugin-kit-routes'

/** @type {import('vite').UserConfig} */
export default config = {
  plugins: [
    sveltekit(),
    // ✅ Add the plugin
    kitRoutes()
  ]
}

Use

<script lang="ts">
  import { route } from '$lib/ROUTES'
</script>

<a href={route('/about')}>About</a>

⭐️ Join us

GitHub Repo stars

💡 KitQL itself is not a library, it's "nothing" but a collection of standalone libraries.