__spritemap
Prefix is Not Replaced During Build
#34
Labels
documentation
Improvements or additions to documentation
__spritemap
Prefix is Not Replaced During Build
#34
When runnning the "basic" demo project locally with
vite dev
, all SVGs load as expected. However, theuse
andimg
examples do not load after runningvite build
followed byvite preview
. Examining the builtindex.html
file shows that the__spritemap
prefix was not replaced with the name of the outputassets/spritemap.<HASH>.svg
file.It also seems that the
__spritemap
prefix is not replaced in React JSX components upon build, although the plugin works when runningvite dev
. My React component is the following:The text was updated successfully, but these errors were encountered: