-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Labels
Description
Hi,
When importing assets (images for examples) inside HTML of svelte component, it's not processed by the loader and therefore neither by webpack.
example that don't work:
<img src="./statics/image.png"/>
workaround:
<script>
import img from "./statics/image.png";
</script>
<img src="{img}"/>
You might be interested at the way vue-loader
is doing it. I don't know if this is relevant to svelte tho.
lloy0076, GMartigny, cayter, itsfarseen, neurocmd and 19 moreumwwwelt