首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >狂妄自大排除了智能编辑的编译

狂妄自大排除了智能编辑的编译
EN

Stack Overflow用户
提问于 2021-12-29 10:27:34
回答 3查看 1.1K关注 0票数 0

有没有办法将智能编辑、草率编译排除在蚂蚁构建过程之外?这个单调的过程增加了将近2分钟的额外时间来完成蚁群编译。

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2022-02-16 09:43:54

匆忙构建是在smartedittools扩展中触发的,因此即使您的店面没有安装一个插件,或者您根本没有一个店面(例如,当使用像斯巴达克斯那样的解耦前端时,它也会升级)。

您可以使用smartedittools.only.build.once=true标志告诉它只构建一次,参见smartedittools/project.properties中的注释

代码语言:javascript
复制
# Introduce new flag to skip smartedit build if bundle files(smartedit/apps/smartedit-master/dist/**) already generated.
# Smartedit dev team: Will keep value false by default since Rush incremental build working fine under git working tree.
# Other hybris team and Non-Smartedit partner: Use true to avoid build smartedit everytime in commerce-suite.zip env.
# Smartedit partner: Update the value on-demand, delete the smartedit bundle or change flag to true will build again.
smartedittools.only.build.once=false
票数 4
EN

Stack Overflow用户

发布于 2021-12-31 09:58:40

  1. 移除以下目录:

hybris/bin/modules/npm-ancillary/npmancillary/resources/npm/node_modules

  1. 使用ant addonunistall命令卸载addon (可选,因为卸载addon而不删除上述文件夹不会减少构建时间,但在我看来,最好卸载它,这样项目的开发人员就不会感到困惑):

addonuninstall -DaddonStorefront.yacceleratorstorefront=yourstorefront -Daddonnames=smarteditaddon

票数 1
EN

Stack Overflow用户

发布于 2021-12-29 13:49:38

如您所知,从哪个build.xml宏中调用宏,因此请注释相同build.xml中的宏条目并将其放置在config->中,应遵循原始文件的相同目录结构。

然后跑:

代码语言:javascript
复制
ant customize and ant clean all
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70518125

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档