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

build 构建的时候 没有把 assets 里面的东西构建到 dist 文件夹下 导致 logo.gif 显示不了 #43

Closed
encorehe opened this issue Jan 18, 2017 · 2 comments

Comments

@encorehe
Copy link

你好,我这边在运行 npm run build 的时候 构建成功了 但是 assets 里面的东西没有构建进去 导致logo图片显示不了 ,我这个 logo 是在 src/utils/config.js 里面配置的路径 。。。

谢谢!

@zuiidea
Copy link
Owner

zuiidea commented Jan 18, 2017

assets里面的图片是我用来写文档用的,logo配置的相对路径的话应该不会打包进去,建议直接写在组件里去应该就可以了,也只有两个地方应用了

@zuiidea zuiidea closed this as completed Feb 7, 2017
@zuiidea
Copy link
Owner

zuiidea commented Mar 21, 2017

@encorehe ,应该可以这样写

import logoSrc from './assets/logo.png'

module.exports = {
  logoSrc,
}

@zuiidea zuiidea reopened this Mar 21, 2017
@zuiidea zuiidea closed this as completed Apr 14, 2017
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

2 participants