问题描述
我想将我的 Web 应用程序从 Web IDE 部署到 SAP 系统,但我在自定义字体方面遇到了问题。
OTS parsing error: Size of decompressed WOFF 2.0 is less than compressed size
我认为这是因为在 SE80 中 woff 和 woff2 文件不在 MIME 文件夹中。 .eot 在 MIME 文件夹中。
到目前为止我尝试过的:
- 将
.Ui5RepositoryBinaryFiles
添加到我的项目中。 - 编辑了 repositorypathmappingfile.xml。 .woff 和 .woff2 条目,因为它们是错误的。属性 internal_rep 是“B”而不是 .eot 条目中的“M”。
- 我已在 SE80 中手动导入文件(导入 MIME 对象)
我使用这个 ui5.yaml 脚本来构建:
specVersion: '1.0'
Metadata:
name: myApp
type: application
resources:
configuration:
propertiesFileSourceEncoding: UTF-8
builder:
customTasks:
- name: webide-extension-task-updateManifestJson
beforeTask: generateManifestBundle
configuration:
appFolder: webapp
destDir: dist
- name: webide-extension-task-updateNeoApp
afterTask: generateVersionInfo
configuration:
destDir: dist
appFolder: webapp
nameSpace: zApp/myApp
- name: webide-extension-task-lint
afterTask: webide-extension-task-updateNeoApp
configuration:
destDir: dist
appFolder: webapp
nameSpace: zApp/myApp
- name: webide-extension-task-resources
afterTask: webide-extension-task-lint
configuration:
nameSpace: zApp/myApp
有什么想法吗?如何将文件作为二进制文件部署到 MIME 文件夹?
解决方法
未找到解决方案,但有解决方法。在 SE03 中解锁运输中的物体。在 SE80 中删除并重新创建 BSP,并通过 SE38 中的 /UI5/UI5_REPOSITORY_LOAD
上传应用程序,并在 webapp 文件夹中使用 .Ui5RepositoryBinaryFiles
文件。
内容:
^.*\.ttf$
^.*\.otf$
^.*\.less$
^.*\.svg$
^.*\.eot$
^.*\.woff$
^.*\.woff2$
^.*\.ico$