extension-examples icon indicating copy to clipboard operation
extension-examples copied to clipboard

Loading SVG and other assets with webpack as React components.

Open pp-paciorek opened this issue 1 year ago • 0 comments

Hello there :)

I'm having issues with setting up the webpack configuration to include svg assets correctly into bundle.js

I have tried react-svg-loader, svgr, file-loader with no luck. Do you maybe have a workaround to make any of the webpack loaders work? Ideally I would like to avoid using paths and be able to import the assets as React components.

Thanks

pp-paciorek avatar Feb 27 '24 19:02 pp-paciorek