所以我使用react-redux和webpack构建我的应用程序,本地运行没有任何问题。当我在heroku上部署应用程序时,不会显示图像,而是会看到一个损坏的图标。图像的路径应该没问题:
const imgPath = '../../style/imgs/cryptocurrency-icons/svg/color';
我没有得到任何与控制台中的图像相关的错误,他们只是不加载。
这是我的项目:https://github.com/jorgeduardos/CryptoPrices
heroku app:https://crypto-waatch.herokuapp.com/