Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

SolidStart's filesystem router as standalone Vite plugin intended for use in single page application (SPA).

License

NotificationsYou must be signed in to change notification settings

edivados/vite-plugin-solid-filesystem-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SolidStart's filesystem router as standalone Vite plugin intended for use in single page application (SPA).

Implementation taken fromSolidStart andVinxi.

Installation

npm install @edivados/vite-plugin-solid-filesystem-router

Usage

import{defineConfig}from"vite";importsolidfrom"vite-plugin-solid";importsolidFilesystemRouterfrom"@edivados/vite-plugin-solid-filesystem-router";exportdefaultdefineConfig({plugins:[solid(),solidFilesystemRouter()]});

Options

options

  • Type: Object
  • Default: {}

options.dir

  • Type: string
  • Default: 'src/routes'

Directory where to look for route files.

options.extensions

  • Type: string[]
  • Default: ['jsx', 'tsx']

An array of file extensions to be picked up as routes. By defualt onlyjsx andtsx are picked up.

options.router

  • Type: BaseFileSystemRouter
  • Defualt: undefined

Custom filesystem router implementation.dir andextensions option will be ignored if present. For more information seeVinxi andSolidStart.

About

SolidStart's filesystem router as standalone Vite plugin intended for use in single page application (SPA).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp