Closed hasakilol closed 10 months ago
由于缺乏足够的信息,我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。
I checked the build result. braft editor css is already bundled in 6666.sdf99378.chunk.css
. However it's referenced from no where.
In umi.df8sdf83.js
, I find the following code:
a.u=function(e){return({xx: "yy"}[e]||e)+"."+{6666:"14af1bdc"}[e]+".async.js"},a.miniCssF=function(e){return({66:"sdf99378"}[e]+".chunk.css"}
However, ****.14af1bdc.async.js
is not emitted at all. Do you have any clue?
我找到了另外一个chunk css。 它和6666.sdf99378.chunk.css 有同样的现象(找不到 **.***.async.js),但是它被referenced了,所以加载到浏览器了。
Please ignore my question. I have figured it out. umi 4 lazily loaded my code. And I didn't put import 'braft-editor/dist/index.css';
in that code.
What happens?
Mini Showcase Repository(REQUIRED)
How To Reproduce
Steps to reproduce the behavior: 1. 2.
In development mode, it's ok. But in production mode, the css is missing.
Expected behavior 1. 2. in production mode, the css is not missing.
Context