I already have all the webpack loaders, so all I need to do is this, but in F#:
import loading from "../images/loading.gif";
This should be an easy thing, I am just lost in the docs and I mostly find info about [<Import>] attribute which seems to be for something else...
In the module
Fable.Core.JsInteropwe do provide helpers for dealing withimport.Source
I think the one you are looking for is:
And you can use it like that:
I set the type to
stringbecause WebPack seems to give you the file URL.