vueflags | ️️ One easy-to-use flag component | Internationalization library
kandi X-RAY | vueflags Summary
kandi X-RAY | vueflags Summary
👩✈️👨✈️ One easy-to-use flag component for Vue.js with all ISO 3166-1 countries.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vueflags
vueflags Key Features
vueflags Examples and Code Snippets
Community Discussions
Trending Discussions on vueflags
QUESTION
I want to show some country flags with this plugin (https://www.growthbunker.dev/vueflags/)
The folder with flags is in:
...ANSWER
Answered 2021-Dec-04 at 09:44I created this repo if you want to see an implementation: https://github.com/r9mp/stackoverflow-vueflags
To do this in a short version : put your flags/*.svg in the static directory.
I tried to make it work with the assets/ directory, but it seems a bit tricky for (I think) this reasons: files smaller than 1kb are converted in base64 and so your flags are not copied to /_nuxt/flags/*.svg. From the documentation: "Which means that every file below 1 kB will be inlined as base64 data URL. Otherwise, the image/font will be copied in its corresponding folder (inside the .nuxt directory) with a name containing a version hash for better caching." (https://nuxtjs.org/docs/directory-structure/assets#webpack-assets)
Or maybe wepback just does not understand the vueflags config and so does not import files in build... I'll try to investigate further!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vueflags
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page