antd-pro项目 clone下来之后, 运行 yarn build ,部署后访问登录界面, 无法正常显示登录背景图片
无论是传网络资源图片或本地资源图片都不行
请问一下 这个该如何解决, 谢谢.
src/layouts/UserLayout.less
@media (min-width: @screen-md-min) {
.container {
background-image: url('../assets/bg.jpg');
background-repeat: no-repeat;
background-position: center 0;
//background-size: 100%;
}
.content {
padding: 72px 0 24px 0;
}
}
看看编译浏览器里的css?
@chenshuai2144 看过了, yarn start 后有资源, yarn build后 找不到资源
plugin.config.js 删掉如何?
暂时把 config/config.js 里的 // import webpackPlugin from './plugin.config'; 停用就可以了,
Most helpful comment
plugin.config.js 删掉如何?