Open liuyang0826 opened 1 year ago
export default defineConfig(({ mode }) => {
return {
plugins: [
// https://www.npmjs.com/package/vite-plugin-pages
Pages({
dirs: 'src/views',
exclude: ['**/{_components_,_services_,_configs_,constants_,_utils_,_styles_}/**'],
}),
],
};
});
When I create a new directory that matches the exclude rule, the corresponding route will be generated, which is not as expected.
{
"name": "news-_configs_",
"path": "/news/_configs_",
"props": true
}
It's happend to me too.any solutions?
Describe the bug
https://github.com/hannoeru/vite-plugin-pages/blob/main/src/utils.ts#L38
isTarget
not validate exclude optionsReproduction
https://github.com/hannoeru/vite-plugin-pages/blob/main/src/utils.ts#L38
System Info
Used Package Manager
npm
Validations