Skip to content

Having trouble adding image assets #225

Answered by jacksteamdev
evanb2 asked this question in Q&A
Discussion options

You must be logged in to vote

@evanb2 Thanks for reporting this! Looks like this was an oversight in the most recent rewrite. I think it's a nice feature, so I'm converting this to an issue.

Workaround

Try putting images in the public folder for now, that should work in production. Once #224 lands it will work in development.

// manifest.json
{
  "icons": {
    "16": "assets/images/logo_16.png",
    "32": "assets/images/logo_32.png",
    "48": "assets/images/logo_48.png",
    "128": "assets/images/logo_128.png"
  },
}
- src/
- public/
  |- assets/
    |- images/
       - logo_16.png
       - logo_32.png
       - logo_48.png
       - logo_128.png
- manifest.json
- vite.config.js

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@evanb2
Comment options

@evanb2
Comment options

Answer selected by evanb2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants