我想将我的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";而不是";M〃;就像.eot条目中一样
- 我已经在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
上传应用程序,其中.Ui5RepositoryBinaryFiles
文件位于webapp文件夹中。
内容:
^.*.ttf$
^.*.otf$
^.*.less$
^.*.svg$
^.*.eot$
^.*.woff$
^.*.woff2$
^.*.ico$