hannoeru / vite-plugin-pages

File system based route generator for ⚡️Vite
MIT License
1.84k stars 127 forks source link

Get pages from another package using alias #482

Closed xiki808 closed 4 months ago

xiki808 commented 4 months ago

Description

I'd like to add a dir configuration to add pages from another npm package.

Currently I can do so by adding this to the dirs config:

{
  dir: 'node_modules/@horizon/website/src/pages',
  baseRoute: '/:locale/'
}

Suggested solution

Would be nice if I can actually use the import path which in this case would be @horizon/website/pages

Alternative

No response

Additional context

No response

Validations