mirror of
https://github.com/wmn1525/grasscutterTools.git
synced 2024-11-28 18:19:06 +00:00
13 lines
335 B
TypeScript
13 lines
335 B
TypeScript
/**
|
|
* @name ConfigPagesPlugin
|
|
* @description 动态生成路由
|
|
*/
|
|
import Pages from 'vite-plugin-pages'
|
|
export const ConfigPagesPlugin = () => {
|
|
return Pages({
|
|
pagesDir: [{ dir: 'src/pages', baseRoute: '' }],
|
|
extensions: ['vue', 'md'],
|
|
exclude: ['**/components/*.vue'],
|
|
nuxtStyle: true,
|
|
})
|
|
} |