简体   繁体   English

Deployment.woff 和 woff2 文件到 SAP 系统

[英]Deployment .woff and woff2 files to SAP system

I want to deploy my web app from Web IDE to SAP system but I've got problems with a custom font.我想将我的 web 应用程序从 Web IDE 部署到 SAP 系统,但我遇到了自定义字体问题。

OTS parsing error: Size of decompressed WOFF 2.0 is less than compressed size

I think it's because in SE80 the woff and woff2 files aren't in MIME folder.我认为这是因为在 SE80 中 woff 和 woff2 文件不在 MIME 文件夹中。 The.eot is in MIME folder . .eot 位于 MIME 文件夹中。

What I've tried so far:到目前为止我已经尝试过:

  • Added .Ui5RepositoryBinaryFiles to my project. .Ui5RepositoryBinaryFiles添加到我的项目中。
  • Edited the repositorypathmappingfile.xml.编辑了存储库路径映射文件.xml。 .woff and.woff2 entries because they were wrong. .woff 和 .woff2 条目,因为它们是错误的。 The property internal_rep was "B" instead of "M" like in the.eot entry.属性 internal_rep 是“B”而不是 .eot 条目中的“M”。
  • I've imported the files manuallly in SE80 (Import MIME object)我已经在 SE80 中手动导入了文件(导入 MIME 对象)

I use this ui5.yaml script for building:我使用这个 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

Any ideas?有任何想法吗? How to deploy the files as binary to MIME folder?如何将文件作为二进制文件部署到 MIME 文件夹?

No solution found, but it works with a workaround.没有找到解决方案,但它适用于解决方法。 Unlock objects in transport in SE03.在 SE03 中解锁传输中的对象。 Delete and recreate BSP in SE80 and upload app via /UI5/UI5_REPOSITORY_LOAD in SE38 with .Ui5RepositoryBinaryFiles file in webapp folder.在 SE80 中删除并重新创建 BSP,并通过 SE38 中的/UI5/UI5_REPOSITORY_LOAD和 webapp 文件夹中的.Ui5RepositoryBinaryFiles文件上传应用程序。

Content:内容:

^.*\.ttf$
^.*\.otf$
^.*\.less$
^.*\.svg$
^.*\.eot$
^.*\.woff$
^.*\.woff2$
^.*\.ico$

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM