2022-10-03 16:33:12 +08:00

15 lines
320 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,
});
};