Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confused by duplicated public/assets #12

Open
ThePeach opened this issue Jul 10, 2023 · 1 comment
Open

confused by duplicated public/assets #12

ThePeach opened this issue Jul 10, 2023 · 1 comment

Comments

@ThePeach
Copy link

ThePeach commented Jul 10, 2023

First off, thanks for sharing this starter project. I'm trying to understand the use of the vite plugin before integrating it into my project.
I'm currently confused by the fact that the assets are currently copied over twice into the webserver:
gnome-shell-screenshot-4yum1m

that is: public/assets/ gets copied as _site/assets/ and as well as _site/public/assets/.

by reading other comments, there seems to be a restriction in using assets as a directory name for vite to pick up images, but not sure about the rest... any help would be greatly appreciated 🙏

@aloxe
Copy link

aloxe commented Sep 17, 2024

This is a bit confusing indeed. I had the same reaction. I also saw only happening when you are in development mode where vite is used as a middleware. I assume vite passes public static assets to assets this way as the public folder is not passed through addPassthroughCopy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants