grasscutterTools/config/vite/plugins/pages.ts

13 lines
335 B
TypeScript
Raw Permalink Normal View History

2022-05-02 10:38:10 +00:00
/**
* @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,
})
}