-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
Expected behaviour
If I do this: <img src="../path/to/image" />
I get a broken image.
I thought this was a webpack 5 bug, so I posted it in their issues list, but they mentioned that this is a html-webpack-plugin
bug.
Here is my repo for reference. Just needs an npm i && npm start
Is there something I'm doing wrong? Is this a bug or is there a way to fix this?
Current behaviour
I get this instead of the actual image:
I'm trying with svg
, png
, and jpg
. No luck.
Environment
- macOS latest
10.15.7
- node
v14.4.0
- npm
v6.14.5
- webpack
v5.4.0
- html-webpack-plugin
v5.0.0-alpha.14
Config
Copy your template file if it is part of this issue:
<img
class="logo-img"
src="/src/images/mikasa.png"
alt="website logo"
/>
or any variation of path and/or file extension...!
Relevant Links
Additional context
Any help would be greatly appreciated!
Th3S4mur41 and Nantris
Metadata
Metadata
Assignees
Labels
No labels