foundation-cli
foundation-cli copied to clipboard
Data-interchange stopped working: no src attribute being added to img
I am using data-interchange
to swap out inline SVGs at different screen sizes (by including data-inline-svg
in the img
tag).
This worked perfectly throughout development, but stopped working after I ran npm package
. Now nothing appears on the page, and the HTML no longer shows a src
attribute being inserted in the img
code.
I am showing the following console error for Inline SVG, but no error related to data-interchange
:
Uncaught ReferenceError: Foundation is not defined at foundation.inline-svg.js:83 at Object.1.svg-injector/svg-injector (foundation.inline-svg.js:84) at s (foundation.inline-svg.js:1) at e (foundation.inline-svg.js:1) at foundation.inline-svg.js:1