I try to integrate my own local images in my theme using the following import in my header:
import mylogo from './../assets/images/logo.jpg';
but the compilation process hangs, even if I just import the file without displaying my logo.
Latest message during compilation:
SERVER STARTED -- Listening @ http://localhost:3000 - mode: development - target: module
The process consumes almost 100% of CPU, I could assume that it comes from webpack, but can’t figure out how to solve that issue. Importing CSS files works fine, but this issue happens when importing jpg or png files.
Step to reproduce:
- Add a valid logo.png file in src/assets/images folder in local mars theme
import mylogo from './../assets/images/logo.jpg';line to header.js in mars-theme
- Run npx frontity dev
Am I missing something here? I’m using Win 10, not using any additional packages or whatever, just doing the steps described above.