You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently, I was updating the version of the style library. When compiling the style, I noticed that there was a lack of variables. But my variable file was "init" again. I found that it did not change. Then I checked the variables in the style library and found that there were new variables added. Then I looked at the compiled code and found that there was a problem
There is a problem in compiling by overwriting the configuration file to the Library: when I update the style library, the first response is to compile. If the compilation fails, the style will be regenerated. After updating the style library, it is found that when the construction fails, the variable files in the style library have been replaced. At this time, init again will not get the real style. So need to recover the variable file after the construction is completed, or cache the variable file to other places (this may be better, after all, the recovery will be interrupted)
最近更新版本,编译样式时提示缺少变量,但是我的变量文件是重新
--init
出来的,发现确实没有改动,然后查看样式库的变量发现确实有新变量加入,然后看了下编译代码,发现这里有问题Recently, I was updating the version of the style library. When compiling the style, I noticed that there was a lack of variables. But my variable file was "init" again. I found that it did not change. Then I checked the variables in the style library and found that there were new variables added. Then I looked at the compiled code and found that there was a problem
element-theme/lib/task.js
Lines 33 to 34 in 6b2a112
这里通过将配置文件覆盖到库中的方式进行编译,这就会存在一个问题:当我更新样式库后,第一反应是进行编译,如果编译不通过才是重新生成样式。在更新样式库后,发现构建失败时,样式库内的变量文件已经被替换了,这时再重新init就获取不了真实的样式。所以需要在构建完成后恢复变量文件,或者将变量文件缓存到其他地方(这个也许比较好,毕竟恢复会存在中断的问题)
There is a problem in compiling by overwriting the configuration file to the Library: when I update the style library, the first response is to compile. If the compilation fails, the style will be regenerated. After updating the style library, it is found that when the construction fails, the variable files in the style library have been replaced. At this time, init again will not get the real style. So need to recover the variable file after the construction is completed, or cache the variable file to other places (this may be better, after all, the recovery will be interrupted)
sqchenxiyuan@40298ce
The text was updated successfully, but these errors were encountered: