Build a script in lib mode and a website at the same time #8222
Unanswered
mquandalle
asked this question in
Q&A
Replies: 2 comments
-
Did you get the solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Pointers would be helpful |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use to Vite to :
It uses Vite library mode
Currently I have to use two different vite config : website and external script. These 2 distincts configs introduce some complexity (slightly harder to launch the two build in dev or production mode, maybe some issues with vite internal cache reset when a change is detected on the config), and I wonder if I could simplify it.
It's already possible to have multiple entry points on a vite config, but as far as I know all of them have to be in library mode or not. It isn't possible to generate at the same time a script in library mode and a website alongside. Any idea to solve this?
Beta Was this translation helpful? Give feedback.
All reactions