-
from here https://docs.plasmo.com/browser-extension/assets#importing-image-assets-inline import someCoolImage from "data-base64:~assets/some-cool-image.png"
...
<img src={someCoolImage} alt="Some pretty cool image" /> how can i do some thing llike for (let i = 0; i < 100; i++) {
import image from `data-base64:~/assets/${i}.png`
} |
Beta Was this translation helpful? Give feedback.
Answered by
LoneExile
Oct 19, 2022
Replies: 1 comment
-
got it. sent location from popup then use it in the contents https://github.com/PlasmoHQ/examples/blob/main/with-web-accessible-resources/popup.tsx#L3 set in package.json "web_accessible_resources": [
{
"resources": [
"assets/*.png"
]
}
]
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LoneExile
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
got it.
sent location from popup then use it in the contents
https://github.com/PlasmoHQ/examples/blob/main/with-web-accessible-resources/popup.tsx#L3
set in package.json