c8r / x0

Document & develop React components without breaking a sweat

Home Page:https://compositor.io/x0/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support images for dev mode

KarafiziArtur opened this issue · comments

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.

@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?

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' />).

Thanks! It works.