[solved] QIcon using SVG file and quasar build
-
Hi,
I was having trouble gettingquasar build
to work properly when usingQIcon
with the name property, like this:<q-icon name="img:assets/checkbook.svg"/>
The problem is that the file
checkbook.svg
was not being copied to thedist
folder.I finally solved it by putting my SVG file in the
statics
folder instead ofassets
, but I don’t really understand why that works. Is this normal behavior?Thanks!
-
@mstarr - Yes. It’s normal behavior. All assets not needing some sort of processing need to go into the statics folder.
https://quasar.dev/quasar-cli/cli-documentation/handling-assets#Introduction
Scott
-
@s-molinari ok, thanks for answering. I missed that on the documentation somehow.
Cheers!