[英]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:到目前为止我已经尝试过:
.Ui5RepositoryBinaryFiles
to my project. .Ui5RepositoryBinaryFiles
添加到我的项目中。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.