xushunfa459 bb8a597e19 update
2022-06-30 19:27:52 +08:00

14 lines
319 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,
});
};