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

Build into dist root #14

Open
MetaMmodern opened this issue Mar 20, 2023 · 4 comments
Open

Build into dist root #14

MetaMmodern opened this issue Mar 20, 2023 · 4 comments

Comments

@MetaMmodern
Copy link

Hi, I want to put the result of your plugin under root of dist and not into dist/assets. How do I do that? How do I postpocess the result of your plugin?

I need at least favicon.ico to be accessible through my.website.com/favicon.ico, and not my.website.com/assets/favicon.ico.

@MetaMmodern MetaMmodern changed the title Build into dist root with versioning Build into dist root Mar 20, 2023
@JohnPremKumar
Copy link
Owner

This defaults to vite assest directory option. You can control it using the vite config as mentioned here

@MetaMmodern
Copy link
Author

MetaMmodern commented Mar 20, 2023

@JohnPremKumar yes, but then all my assets will be in one folder, and I wanted favicon related stuff to be in root(dist/), while other assets in dist/assets.

Anyway, I'm not going to use this library, because favicons library doesn't generate faicons for Safari MacOS. And I need them. So I'll just use https://realfavicongenerator.net/

Update: actually this library is much better than provided website, I just encountered a caching issue. The favicons are generated correctly. But I still need some option to build into root, and not into assets. From description of Vite I see that it's hardly posible. But keeping assets in one folder is also something that is important. But according to that website my favicon.ico has to be in root. So idk, I'm on a crossroads now, what to do.

@JohnPremKumar
Copy link
Owner

I will check about the part to provide the option override the asset dir. In the meantime, you can try using the plugins like vite-plugin-static-copy to copy favicon file in to your desired location.

@MetaMmodern
Copy link
Author

Actually I just used that website to create an ico and put it into public folder.It's "different" from what your plugin generates, but that's better than nothing. But thanks, I'll take a look at what you shared.

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