cloudify-stage
cloudify-stage copied to clipboard
POC: Fixed fonts and images loading
Description
Some time ago we've had css-loader
in version 3rd, recently it was updated to version 6th, which resulted in having issues with fetching fonts and images.
After doing an investigation it appears that version 6th of css-loader
have started giving us issues (5h and 4th were working just fine)
Due to that I've went through their migration guideline and applied necessary fixes not only to mechanism of exposing fonts, but also for images.
Overall, the fixes are:
- Removing "." in url, as
[ext]
variable comes with it out of the box - Adjusting structure to be basing on native webpack 5 functionalities, as suggested by community
Screenshots / Videos
Sources tree comparison
Before
After
Checklist
- [ ] My code follows the UI Code Style.
- [ ] I followed the UI Testing Guidelines and verified that all tests/checks have passed.
- [ ] I verified if that change requires any update in the documentation.
- [ ] I added proper labels to this PR.
Tests
N/A, as it's a POC
Documentation
N/A