Closed gureckis closed 1 week ago
Describe the bug
When building slides that reference static image assets in the front matter (e.g., image-left) the asset is not copied into the final build folder by vite.
Minimal reproduction
--- layout: image-left image: assets/photo.png class: mycoolclass ---
slidev build
<div class="w-full h-full" style="color: white; background-image: url("assets/photo.png"); background-repeat: no-repeat; background-position: center center; background-size: cover;"></div>
I expected that all references static content would be processed by vite and moved into the assets folder.
Environment
nevermind, this is probably a use case for public/ folder
public/
Describe the bug
When building slides that reference static image assets in the front matter (e.g., image-left) the asset is not copied into the final build folder by vite.
Minimal reproduction
slidev build
However, the rendered HTML does reference this file:
I expected that all references static content would be processed by vite and moved into the assets folder.
Environment