You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/documentation/docs/pages/Server.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,12 @@ Please be aware of the following risks when using the server:
25
25
26
26
## Standard Middleware
27
27
28
+
::: info Removed Middleware
29
+
The `serveThemes` middleware has been removed in UI5 CLI v5. Theme compilation is now handled by the `buildThemes` build task during the incremental build, which pre-compiles all theme CSS files. The resulting CSS files (including `library.css`, `library-RTL.css`, `library-parameters.json`, and CSS Variables resources) are served via the `serveResources` middleware, providing the same functionality with better performance through build-time compilation and caching.
30
+
31
+
Custom middleware previously referencing `serveThemes` via `beforeMiddleware` or `afterMiddleware` will continue to work with automatic remapping and a deprecation warning. See the [v5 migration guide](../updates/migrate-v5.md) for details.
32
+
:::
33
+
28
34
All available standard middleware are listed below in the order of their execution.
29
35
30
36
A project can also add custom middleware to the server by using the [Custom Server Middleware Extensibility](./extensibility/CustomServerMiddleware.md).
@@ -37,7 +43,6 @@ A project can also add custom middleware to the server by using the [Custom Serv
37
43
|`discovery`| See chapter [discovery](#discovery)|
38
44
|`serveResources`| See chapter [serveResources](#serveresources)|
39
45
|`testRunner`| See chapter [testRunner](#testrunner)|
40
-
|`serveThemes`| See chapter [serveThemes](#servethemes)|
41
46
|`versionInfo`| See chapter [versionInfo](#versioninfo)|
42
47
|`nonReadRequests`| See chapter [nonReadRequests](#nonreadrequests)|
43
48
|`serveIndex`| See chapter [serveIndex](#serveindex)|
@@ -73,11 +78,6 @@ The following file content transformations are executed:
73
78
### testRunner
74
79
Serves a static version of the UI5 QUnit TestRunner at `/test-resources/sap/ui/qunit/testrunner.html`.
75
80
76
-
### serveThemes
77
-
Compiles CSS files for themes on-the-fly from the source `*.less` files.
78
-
79
-
Changes made to these `*.less` files while the server is running will automatically lead to the re-compilation of the relevant CSS files when requested again.
80
-
81
81
### versionInfo
82
82
Generates and serves the version info file `/resources/sap-ui-version.json`, which is required for several framework functionalities.
Copy file name to clipboardExpand all lines: internal/documentation/docs/updates/migrate-v5.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,27 @@ Delete the custom `test/Test.qunit.html` file from your test directory. This fil
198
198
Depending on your project setup, you might need to update additional paths in configuration files or test runners to reflect the new structure.
199
199
The test suite is now served under the standard `/test-resources/` path with the component's full namespace (e.g. `/test-resources/sap/ui/demo/todo/testsuite.qunit.html`).
200
200
201
+
## Removal of Standard Server Middleware
202
+
203
+
The following middleware has been removed from the [standard middlewares list](../pages/Server.md#standard-middleware):
204
+
205
+
*`serveThemes` — Theme compilation (LESS to CSS) is now handled by the `buildThemes` build task during the incremental build, rather than on-demand during runtime. The resulting CSS files are served via the `serveResources` middleware. This change improves performance through build-time compilation and caching while maintaining the same functionality.
206
+
207
+
**Backward Compatibility:**
208
+
If your project or any custom middleware references a removed middleware via `beforeMiddleware` or `afterMiddleware`, UI5 CLI will automatically remap the reference to the nearest remaining middleware and log a deprecation warning. Your custom middleware will still be executed in the expected order.
209
+
210
+
**What Changed:**
211
+
- Theme CSS files (`library.css`, `library-RTL.css`, etc.) are now **pre-built** during the incremental build
212
+
- Files are served via `serveResources` instead of being compiled on-demand
213
+
- The same CSS files are available at the same URLs as before
214
+
215
+
**Recommended Action:**
216
+
Update your `ui5.yaml` configuration to reference an existing middleware instead.
0 commit comments