More Premium Hugo Themes Premium Vue Themes

Vite Plugin Pages

File system based route generator for Vite

Vite Plugin Pages

File system based route generator for Vite

Author Avatar Theme by hannoeru
Github Stars Github Stars: 2074
Last Commit Last Commit: Jan 13, 2026 -
First Commit Created: Aug 27, 2024 -
Vite Plugin Pages screenshot

Overview

Vite Plugin Pages is a powerful tool designed for developers working with Vue 3, React, or Solid applications using Vite. It simplifies the process of defining routes by leveraging the file system for page organization, making it easier to manage large projects. The plugin automatically generates routes based on the structure of your project, allowing you to focus on building features rather than dealing with complex routing configurations.

This plugin is particularly useful for those using Vue, but it’s important to note that Vue users are encouraged to consider unplugin-vue-router for better integration with Vue Router. For React developers, the plugin has streamlined support for react-router v6, ensuring optimal performance with modern React applications.

Features

  • File System Based Routing: Automatically generates routes based on your folder structure, simplifying the routing setup for your application.
  • Custom Configuration: Allows for options to customize paths and file patterns, enabling greater flexibility for project organization.
  • Support for Multiple Frameworks: Compatible with Vue 3, React, and Solid, making it a versatile choice for modern web development.
  • Asynchronous Loading: Provides the option to load routes asynchronously, enhancing performance for larger applications.
  • Route Type Generation: Automatically generates route types for better type safety and autocomplete features when using Vue Router.
  • Flexible Import Modes: Offers the ability to choose between sync or async import modes, providing fine-grained control over how components are loaded.
  • Custom File Extensions: Configurable file extensions for pages support various development needs, accommodating different project structures.
  • Exclude Patterns: Lets you specify glob patterns to exclude certain files or folders, ensuring only relevant pages are processed.