Skip to content

[6.x] Allow using SVGs from vendor/node_modules directories#14261

Merged
jasonvarga merged 1 commit into6.xfrom
svg-tag-vendor-icons
Mar 16, 2026
Merged

[6.x] Allow using SVGs from vendor/node_modules directories#14261
jasonvarga merged 1 commit into6.xfrom
svg-tag-vendor-icons

Conversation

@duncanmcclean
Copy link
Member

This pull request updates the {{ svg }} tag to allow using icons from the vendor/node_modules directories, as well as anywhere else in your project.

The tag will still look at paths like resources/svg, public/svg first, but if it fails to find a match, it'll look from the base of the project.

Fixes #14253

@jasonvarga jasonvarga merged commit 974c019 into 6.x Mar 16, 2026
18 checks passed
@jasonvarga jasonvarga deleted the svg-tag-vendor-icons branch March 16, 2026 17:50
@jimblue
Copy link
Contributor

jimblue commented Mar 16, 2026

tks @duncanmcclean ! 💪🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SVG tag: src docs say "relative to root" but only 4 directories are searched — node_modules/ silently fails

3 participants