Skip to content

bobaekang/vue3-multiple-entry-points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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