@mussi/vite-plugin-pages
v0.18.3-beta.2
Published
File system base vue-router plugin for Vite
Downloads
7
Readme
@mussi/vite-plugin-pages
File system based routing for Vue 3 applications using îles
This is a temporary fork of vite-plugin-pages that adds a Javascript API to the plugin, which is used by îles.
Getting Started
By default, files in the src/pages
directory are automatically registered
as pages in the router.
Configuration ⚙️
You can provide custom configuration by providing a pages
option in your îles configuration file:
// iles.config.ts
export default {
pages: {
pagesDir: 'src/views'
},
}
See the vite-plugin-pages documentation for more information.