React-Redux应用程序不在Heroku上显示图像

问题描述 投票:0回答:2

所以我使用react-redux和webpack构建我的应用程序,本地运行没有任何问题。当我在heroku上部署应用程序时,不会显示图像,而是会看到一个损坏的图标。图像的路径应该没问题:

const imgPath = '../../style/imgs/cryptocurrency-icons/svg/color';

我没有得到任何与控制台中的图像相关的错误,他们只是不加载。

这是我的项目:https://github.com/jorgeduardos/CryptoPrices

heroku app:https://crypto-waatch.herokuapp.com/

reactjs heroku deployment redux
2个回答
© www.soinside.com 2019 - 2024. All rights reserved.