Working with Multiple Vue 3 Projects in a Monorepo #13943
Unanswered
pablo-vega-kloeckner-i
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone 👋
I'm working on a monorepo setup with multiple Vue 3 applications, and I'm looking for best practices around managing structure, shared code, and build configuration.
Here's what my current directory structure looks like:
Each app1 and app2 is a separate Vue 3 application with its own logic, pages, layouts, and components. The shared/ directory contains reusable code (components, composables, utilities) that should be imported and used across both apps.
✅ What I’m trying to achieve:
Cleanly separate app1 and app2 as independent Vue 3 frontends
Be able to import shared (components/composables/utilities) from a common directory
Use Vite (preferred) or Webpack to handle multiple entry points and shared code resolution
Keep things modular and maintainable in the long term
🔧 Questions
How should I structure this monorepo for clean development and build separation of each app?
What's the best way to configure Vite to:
Build each Vue 3 app independently?
Use a shared library without duplicating code or having import issues?
Are there best practices for organizing shared code across apps (e.g. aliasing, symbolic links, packages)?
Should I consider using pnpm workspaces, Yarn workspaces, or Nx/TurboRepo for better monorepo support?
Beta Was this translation helpful? Give feedback.
All reactions