You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In theory, both assets (the favicon and the logo) should be inlined as they both are located outside of the public folder and they both meet the file size limit criteria. However, when I build the project I get this:
vite v5.2.8 building for production...
✓ 15 modules transformed.
rendering chunks (1)...
Inlining: index-phi6qHca.js
Inlining: style-DfwcZBBi.css
NOTE: asset not inlined: favicon-Ch38otTT.png
dist-single-file/favicon-Ch38otTT.png 0.83 kB
dist-single-file/index.html 542.08 kB │ gzip: 202.44 kB
✓ built in 764ms
And if I look inside the generated .html file, indeed the favicon isn't inlined, but the logo is.
Is this a limitation of this plugins or am I hitting a bug?
The text was updated successfully, but these errors were encountered:
It's not a bug, but the README may have some info that is specific to VueJS, which is the only framework I use with it personally.
With Vue, assets in the "public" folder are never bundled, so this plugin can't inline them.
If you're using another framework that doesn't have a public folder or applies different rules to what is or isn't bundled, those rules would still apply here as well.
I'm not using any framework, this is plain html + js. What strikes me is that both the favicon and the logo are located inside the assets folder, but only the second is inlined.
I'm aware of the limitation which prevents this plugin from inlining assets from the
public
folder, however I have the following HTML:This is how the structure of my project looks like:
And my
vite.config.js
In theory, both assets (the favicon and the logo) should be inlined as they both are located outside of the
public
folder and they both meet the file size limit criteria. However, when I build the project I get this:And if I look inside the generated .html file, indeed the favicon isn't inlined, but the logo is.
Is this a limitation of this plugins or am I hitting a bug?
The text was updated successfully, but these errors were encountered: