Skip to content

Troubles using an svg sprite #6367

Discussion options

You must be logged in to vote

I’m new to parcel so I can’t be of too much help but have you tried changing the path to a full URI (including http at the beginning as if you were using a CDN for the image) as a work-around?

I had to use a CDN for jQuery because parcel doesn’t bundle it correctly and the global $ object never gets defined. The build script should ignore full URLs so you could do that as a means of getting around the bad transform.

For me it’s fine as a permanent solution since using a CDN for a library script is reasonable anyway; I don’t know if it makes sense for SVG assets.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@verhulstd
Comment options

@StevenLeonCooper
Comment options

@verhulstd
Comment options

@verhulstd
Comment options

Answer selected by verhulstd
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants