New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to import image generated by image-webpack-loader #130
Comments
Currently, this functionality is not supported. The FFI does not pass
through webpack loaders.
…On Tue, Aug 6, 2019 at 23:59 Serhii Khoma ***@***.***> wrote:
When using js with
https://www.npmjs.com/package/image-webpack-loader one can write
import image from "./image.png"
console.log(image) # will output base64 encoded string OR relative path to image from dist directory
But how to import image from purescript code? FFI?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#130?email_source=notifications&email_token=AACVRS25PWEZEG4CURKZ2Z3QDJCB5A5CNFSM4IJ4D6TKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDZBIMA>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACVRS6YCRKPL5BY2SUT3ITQDJCB5ANCNFSM4IJ4D6TA>
.
|
@ethul I have no idea how to make it possible, do you have one? |
I've looked into this previously and did not come up with a good way to do this. I am open to ideas on how to make this possible. |
actually image import is working without changes |
Great! Thanks for testing this out. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using js with
https://www.npmjs.com/package/image-webpack-loader one can write
But how to import image from purescript code? FFI?
The text was updated successfully, but these errors were encountered: