Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module app/component/Home/image/logo.png #48

Open
T-baby opened this issue Mar 24, 2017 · 6 comments
Open

Cannot find module app/component/Home/image/logo.png #48

T-baby opened this issue Mar 24, 2017 · 6 comments

Comments

@T-baby
Copy link

T-baby commented Mar 24, 2017

react引入图片时提示这个

@g8up
Copy link

g8up commented Apr 17, 2017

十有八九是这个文件路径不存在

@oxUnd
Copy link
Contributor

oxUnd commented Apr 23, 2017

图片,图片怎么用 require 来引入了,是不是一个 require.js 的项目?

@T-baby
Copy link
Author

T-baby commented Apr 25, 2017

react引入图片就是这么引入的。。😅

@oxUnd
Copy link
Contributor

oxUnd commented Apr 26, 2017

@T-baby 那就是你用的 AMD 方案吧。编译选型跟使用的加载方案强关联。暂时来看,没有一个工具能通吃。都是靠定制来搞定的,如果是 require.js 的,可以使用 AMD 相关 packager 插件。

@2betop
Copy link
Contributor

2betop commented Apr 26, 2017

@oxUnd
Copy link
Contributor

oxUnd commented Apr 26, 2017

@2betop 赞,居然有了这个插件。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants