Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include in an existing project #175

Open
melon2504 opened this issue Feb 23, 2024 · 1 comment
Open

Include in an existing project #175

melon2504 opened this issue Feb 23, 2024 · 1 comment

Comments

@melon2504
Copy link

Is there a direct way to include the plugin in an existing vite project?

I'm trying to use this for my reusable component library.

From what I see as per documentation, we can only create a new project from the template.

@csr632
Copy link
Member

csr632 commented Feb 24, 2024

Is library demo or library monorepo demo working for you? In these two demo project, the vite-pages site is not the only "build". They can also include builds for the component library, other site .etc.

The common practice is that, you put the vite config, index.html, and the package.json for the vite-pages site in a seperate folder, like library demo:
image
and insite the vite-pages project(folder), you can import data from other folders such as src.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants