SAP Commerce Cloud如何针对Spartacus进行安装
发布日期:2021-06-30 14:36:31 浏览次数:2 分类:技术文章

本文共 1082 字,大约阅读时间需要 3 分钟。

如下图所示:

network底部有1.1 MB transferred over network和5.1 MB resources loaded by the page. 这两个大小有何区别?

有中文博客介绍说transferred over network是通过网络加载的资源尺寸,而resources loaded by the page不仅包含前者,也包含直接从浏览器缓存里加载的资源尺寸。这种说法不完全准确,更精确的说法是,resources loaded by the page统计的是前端页面加载的所有资源经过解压之后的原始大小。

如图,在打开Chrome开发者工具的Use Large request rows选项, 就能显示出经过网络加载资源压缩过后的原始大小,如下图所示:

以上说明来自Google官网:

https://developers.google.com/web/tools/chrome-devtools/network/reference#uncompressed

https://stackoverflow.com/questions/56043151/what-is-the-difference-between-transferred-and-resources-in-chrome-devtools

(1) 准备好Commerce Cloud 2005和Spartacus addon的压缩包:

(2) Move the file custom.properties from spartacussampledataaddon/resources/installer/customconfig to installer/customconfig.

(3) In hybris/bin文件夹,创建custom文件夹,把整个spartacussampledataaddon文件夹放到hybris/bin/custom下去。

把installer/recipes文件夹下的cx复制一份出来,重命名成cx-for-spa:

打开cx-for-spa文件夹里的build.gradle, 把extName 'spartacussampledataaddon’的注释去掉。

(4) 进入install文件夹,执行命令行:

install -r cx-for-spa进行安装:

静候其build结束。

(5) 执行命令行install.bat -r cx-for-spa initialize

更多Jerry的原创文章,尽在:“汪子熙”:

转载地址:https://jerry.blog.csdn.net/article/details/109447206 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:SAP Spartacus如何启用B2B feature
下一篇:Chrome开发者工具network标签页里的transferred over network和resources loaded by the page的区别

发表评论

最新留言

很好
[***.229.124.182]2024年04月16日 03时47分15秒