An Elm package to provide helpers for using vite-plugin-elm.
elm install hmsk/elm-vite-plugin-helper
import Html exposing (Html, img)
import Html.Attributes exposing (src)
import VitePluginHelper exposing(asset)
view : Model -> Html Msg
view _ =
[
img [ src <| asset "/assets/logo.png" ] []
-- An exact URL or inline data for an asset should be provided by Vite
]