ember-cli / ember-cli/broccoli-asset-rev

Prepend brakes SVG icon references

Open
#51 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
86
Forks
79
PR merge metrics
No merged PRs in 30d

Description

I use inline SVG icons like this in my `components/side-bar.hbs`:

```

```

Here is what I get after `prepend`:

```

```

Here is what I expect to have:

```

```

Basically, `prepend` removes the `#` from the icon reference `icons-2d8bb19bb3d1a09b68444738ca864c06.svg#my-icon-name`, after that the reference will look like this: `icons-2d8bb19bb3d1a09b68444738ca864c06.svgmy-icon-name`.

I have this problem only when I use `prepend`. Why `prepend` removes the `#` from the original URL?Please advise how we can solve this problem. It actually can be related to this one https://github.com/rickharrison/broccoli-asset-rev/issues/42

Just in case, here is how the `icons.svg` looks inside:

```

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.