I started a project with Pheonix 1.6 rc. Everything is going great and the new esbuild pipeline is so fast and a joy to work with. I cannot find out how to display an hero image on home screen.
I added the file to assets/static/images/hero-image.svg
here is my image tag
<img class="rounded-2xl" src="/images/hero-image.svg">
I have added the SVG loader to esbuild in config.exs
config :esbuild,
version: "0.12.18",
default: [
args:
~w(js/app.js js/draft-editor.js js/book-long-description-html-editor.js js/chapter-render.js static/fonts/fonts.css --bundle --loader:.otf=file --loader:.svg=file --target=es2016 --outdir=../priv/static/assets),
cd: Path.expand("../assets", __DIR__),
env: %{"NODE_PATH" => Path.expand("../deps", __DIR__)}
]
What am I doing wrong ? How do I get the image to be displayed on home screen ? Thanks