In my current use case, I'm using vite to build multiple SPA targets from a monorepo.
I can have multiple root directories, but each directory needs to contain redundant data as configuration is the same for all directories, the only difference is the root index.html.
Also, for some reason, using windicss plus svelte does also not work well with subdirectories, as the style is not properly built when using a root directory which is not the current directory. Although this is probably a bug with windicss, it illustrates however the difficulties of having multiple directories for other packages which may not support this well.
Suggested solution
The easy solution would be to provide a root_file parameter which is simply the path to index.html.
All other parameters and configuration files are taken from the main current directory.
Clear and concise description of the problem
In my current use case, I'm using vite to build multiple SPA targets from a monorepo.
I can have multiple root directories, but each directory needs to contain redundant data as configuration is the same for all directories, the only difference is the root
index.html
.Also, for some reason, using
windicss
plussvelte
does also not work well with subdirectories, as the style is not properly built when using a root directory which is not the current directory. Although this is probably a bug withwindicss
, it illustrates however the difficulties of having multiple directories for other packages which may not support this well.Suggested solution
The easy solution would be to provide a
root_file
parameter which is simply the path toindex.html
.All other parameters and configuration files are taken from the main current directory.
Alternative
No response
Additional context
No response
Validations