question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where to place / How to reference SVGs for Phonegap use

See original GitHub issue

I am running into issues using SVGs, during development I had placed svg files in www/assets/subdirs/files.svg - this was working fine.

When I then did a phonegap run android, I found that one of the hooks wiped out everything in www/

I then tried to place the svgs in: src/assets/static/images/svg/subdirs/files.svg and src/static/images/svg/subdirs/files.svg

Neither seem to give me any joy, any hints?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
centrualcommented, May 3, 2017

I closing the issue, it seems fixed.

0reactions
joedevelopercommented, Jun 26, 2017

Sorry for the late response, just cycled back to this project and thank you, it works for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SVG `use` with External Source - CSS-Tricks
SVG `use` with External Reference, Take 2. SVG has a element which essentially means: go find the chunk of SVG that has this...
Read more >
cordova phonegap wp8 svg broken in image tag
I am programming a wp8 app and use svg's in image tags like so <img src="images/logo.svg" />. When I open it in the...
Read more >
Mimic Relative Positioning Inside an SVG with Nested SVGs
You can use a nested SVG to group elements together and then position them inside the parent SVG. Of course, you can group...
Read more >
How to Work with SVGs in Figma, HTML, and CSS - YouTube
Learn how to work with SVGs to prepare SVG files for export in Figma, optimize them using SVGOMG, and inline them in HTML...
Read more >
[Solved]-Display <svg> in iOS Browser using <html> without the use ...
Use the <img> tag to reference your SVG directly. This works on iOS. ... Note that there is a bug with WebKit related...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found