matrix-react-sdk
20e296b2
- Convert image URLs in React to `require` calls
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Commit
View On
GitHub
Commit
7 years ago
Convert image URLs in React to `require` calls This allows Webpack to insert the proper image URL after builds steps like adding a hash and so on. The path you supply to `require` is relative to the JS source file, just like any other would be.
References
#2460 - Load fonts and images via source-relative URLs and requires
Author
jryans
Committer
jryans
Parents
989227d4
Loading