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
Hi
I'm so glad you find module helpful
It seems that issue is related to url-loader behavior. As docs says:
url-loader return a DataURL if the file is smaller than a byte limit.
And default byte limit in Nuxt.js is 1000, So any SVG files smaller than 1000 byte will show up in js bundle as base64 URIs.
We'll fix this in our next release, Until then this useless data can be removed by modifying module rules directly in nuxt.config.js and change byte limit of SVG files.
Heyooo. 👋🏻 Thanks so much for this package. I just implemented it and it worked great! 👍🏻🎉
I noticed a tiny thing. I ran bundle analyzer on my nuxt site and discovered that the icons are inlined in the generated JavaScript files.
To be sure I removed the module again which made the inlined assets disappear.
This is e.g. code that is generated:
Is this expected behavior? I'm assuming this is the result of some webpack default settings?
I'm not using these inlined files and would like to save the 20kb. ( not a big deal but hey ;) )
Keep up the good work and thanks a bunch!
I'm also happy to look into it myself. 😊
The text was updated successfully, but these errors were encountered: