likec4 icon indicating copy to clipboard operation
likec4 copied to clipboard

Add `--public` option to set Vite public directory

Open AndersHogqvist opened this issue 7 months ago • 1 comments

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

AndersHogqvist avatar May 20 '25 13:05 AndersHogqvist

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.

davydkov avatar May 25 '25 23:05 davydkov