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

打包出来的主题对引用的图片路径不正确 #35

Open
DJGDragon opened this issue May 17, 2021 · 2 comments
Open

打包出来的主题对引用的图片路径不正确 #35

DJGDragon opened this issue May 17, 2021 · 2 comments

Comments

@DJGDragon
Copy link

🧐 问题描述

在打包dist的时候配置了本地不同的主题,现在有个主题里面的图片路径没有进行编译,导致背景图无法加载

💻 示例代码

.mainStyle {
width: 100vw;
height: 100vh;
color: rgb(255, 255, 255);
background-image: url('../../../assets/img/waf/wafbg.jpg');
background-repeat: no-repeat;
background-size: cover;
}

怎么才能让编译的主题样式也是/static/wafbg.81fd989b.jpg

🚑 其他信息

image
image

@zws910
Copy link

zws910 commented Aug 25, 2021

遇到同样的问题,请问有解决方案吗?

@wayneee188
Copy link

wayneee188 commented Sep 14, 2021

尝试修改 theme.config.json 文件中的配置,isModule和cache设为false。

{
...
"min": true,
"isModule": false,
"ignoreAntd": false,
"ignoreProLayout": false,
"cache": false
}

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

3 participants