You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.
Since we now support globs for the pagesDir option I think we can clean up the plugin API somewhat. Here's my initial idea for what it should look like:
// Use a string to set the pages directory, uses the default extensionsvoie({pages: 'src/views'})// Use an object to set the directory and/or the extensionsvoie({pages: {dir: 'src/views',extensions: ['ts']}})// Use an array to specify a list of directories to use// Object syntax can be used inside the array if extensions need to be customized per-directoryvoie({pages: ['module-a/pages',{dir: 'module-b/pages',extensions: ['ts','vue']}]})// Use an object with `dir` as an array when you want to set custom extensions for all paths// Extensions can still be specified per-directory, so in this example// ['ts'] will be used for `module-b/pages`, and ['tsx'] will be used for `module-a/pages`.voie({pages: {dir: ['module-a/pages',{dir: 'module-b/pages',extensions: ['ts']}],extensions: ['tsx']}})
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since we now support globs for the
pagesDir
option I think we can clean up the plugin API somewhat. Here's my initial idea for what it should look like:The text was updated successfully, but these errors were encountered: