Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint ui5_v2
name: Lint app_v2

on:
pull_request:
Expand All @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ui5_v2
working-directory: app_v2
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions app_v2/lib/no-preload-middleware.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default function () {
return function noPreloadMiddleware(req, res, next) {
if (req.method === "GET" && /-preload\.js$/.test(req.path)) {
res.setHeader("Content-Type", "application/javascript; charset=utf-8");
res.end("// dev: preload bundle not generated, individual modules load via the standard loader\n");
return;
}
next();
};
}
Loading
Loading