How to load bootstrap-icons.svg #579
Replies: 2 comments 12 replies
-
The manifest file for Shakapacker/webpack assets would be in Since your SVG is apparently a Rails asset, try using Rails image tag. Alternately, check your Webpack manifest file to confirm that the SVG isn't being inlined into a chunk. |
Beta Was this translation helpful? Give feedback.
-
Hm this will be coming from shakapacker/package/rules/file.js Lines 7 to 29 in 0ae9408 We're stripping additional_paths but we still might not strip enough. IIRC the problem is a bit with what Webpack gives us to work with webpack/webpack#14392 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to load bootstrap-icons.svg using shakapacker.
In applications.js I've added:
and I can see it ended up in the
app/assets/config/manifest.js
as:However I'm not able to reference it with
asset_pack_path('bootstrap-icons.svg')
. It tells me It can't find it in the manifest.Help would be much appreciated to solve this.
Thanks you!
Beta Was this translation helpful? Give feedback.
All reactions