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

How to use vite as shared config in web or workshop? #10

Open
sohamnandi77 opened this issue Nov 9, 2023 · 1 comment
Open

How to use vite as shared config in web or workshop? #10

sohamnandi77 opened this issue Nov 9, 2023 · 1 comment

Comments

@sohamnandi77
Copy link

Can you please show how to use vite as shared config in web or workshop?

@arevalolance
Copy link
Owner

Hi @sohamnandi77. Here's something I saw a while ago. I believe this will also work with tsconfig and such. Some of it may already be implemented in this repo. Haven't touched it for a while. Would love some help updating it.

You can create a shared config folder/package for a config file you want. This can be done with a folder such as packages/vite-config. You can then import the config back into your web or workshop app.

Please see spacedrive's repo as a reference. It's a great reference if you want to do monorepo work.

Two ways to use the package:

  1. Import by using relative paths.
  2. Install as a dependency. Just like how the UI package is installed on the other projects.

Feel free to let me know if you have further questions.

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