Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 956 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 956 Bytes

Multiple entry points setup for Vue 3

This repository is a sequel to bobaekang/vue-multiple-entry-points repository for Vue 3.

Showcasing a simple multiple entry points setup for Vue 3 + Vite application. 🖖

This setup allows you to build multiple Vue 3 applications sharing components from a single repository. Switching build targets is controlled by the VITE_BUILD_TARGET environment variable. Check out /src/main.js to see how this is done!

The key advantage of using multiple entry points is that this setup makes it trivial to share components between multiple Vue 3 applications. No need for creating a separate component library package or setting up a sophisticated monorepo solution.

Project setup

npm install

⚡-fast development server

npm run dev

Production build

npm run build