0.18.3-beta.2 • Published 4 years ago

@mussi/vite-plugin-pages v0.18.3-beta.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@mussi/vite-plugin-pages

npm version

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.