Skip to content

xeticode/elm-vite-plugin-helper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-vite-plugin-helper

An Elm package to provide helpers for using vite-plugin-elm.

Install

elm install hmsk/elm-vite-plugin-helper

Usage

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
    ]

Releases

No releases published

Packages

No packages published

Languages

  • Elm 100.0%