likec4
likec4 copied to clipboard
Add `--public` option to set Vite public directory
Relates to
CLI
Version you are using
1.30.0
Describe the issue
When using the --output-single-file option, likec4 deletes all files in the output folder except index.html. I have some .png files for instance that I link to in various elements of the model but they are deleted.
It should, in my opinion, only delete the temporary files that are embedded in the html and nothing else.
If possible, include link to the playground with example
No response
Hey @AndersHogqvist,
This is the default behavior of Vite. You can either keep or clean the output directory.
Setting the public dir may solve your issue. (to be implemented in CLI)
For now, I recommend changing the output folder and copying the generated file to your desired location afterward.