很多朋友学习笔者这套 Fiori Elements 开发教程时,使用 npm run start
命令行本地启动 Fiori Elements 应用后,都会好奇控制台这些输出:
比如这个:
info fiori-tools-preview Initialized for app jerryfiorielement04
Server started
URL: http://localhost:8080
info fiori-tools-preview HTML file returned at /test/flpSandbox.html is loaded from the file system.
这里的 fiori-tools-preview 其实是一个中间件的名称。
在本地开发 SAP Fiori 应用时,fiori-tools-preview
中间件能够为开发者提供一个高度还原的 Fiori Launchpad 预览环境,无需手动维护静态的 flpSandbox.html
文件,就能通过命令行工具(如 ui5 serve