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.
By default, files in the src/pages
directory are automatically registered
as pages in the router.
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.