Support images for dev mode
KarafiziArtur opened this issue · 3 comments
KarafiziArtur commented
By yarn build
all images display correctly but they are missing in development mode. @jxnblk, could you please provide a solution for displaying them?
I use glamorous
.
KarafiziArtur commented
@jxnblk . I've tried to configure the Webpack's config.js
, but it didn't help. None of the images were displayed. Even by using import
. Is there any solution?
jxnblk commented
If you're trying to import images with a webpack-loader, previous versions of x0 did not use webpack on the node/server side. With 3.2.0, you can point to a custom webpack config
Also, linking to relative images in the same folder should work (e.g. <img src='kitten.gif' />
).
KarafiziArtur commented
Thanks! It works.