Skip to content

Commit

Permalink
implemented static asset handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaykwardell committed Aug 23, 2022
1 parent e7d7dcc commit 8bf689f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"direct": {
"elm/browser": "1.0.2",
"elm/core": "1.0.5",
"elm/html": "1.0.0"
"elm/html": "1.0.0",
"hmsk/elm-vite-plugin-helper": "1.0.1"
},
"indirect": {
"elm/json": "1.1.3",
Expand Down
3 changes: 2 additions & 1 deletion src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import HelloWorld exposing (helloWorld)
import Html exposing (Html, div, img)
import Html.Attributes exposing (src, style)
import Msg exposing (Msg(..))
import VitePluginHelper


main : Program () Int Msg
Expand All @@ -25,6 +26,6 @@ update msg model =
view : Int -> Html Msg
view model =
div []
[ img [ src "/logo.png", style "width" "300px" ] []
[ img [ src <| VitePluginHelper.asset "/src/assets/logo.png?inline", style "width" "300px" ] []
, helloWorld model
]
File renamed without changes

0 comments on commit 8bf689f

Please sign in to comment.