Fix index html generation #415
Annotations
3 errors and 1 warning
|
WebAppModuleTests.publish generates correct index.html referencing minified JS and omits SSE script:
out/plugin/integration/compile.dest/classes/io/github/quafadas/sjsls/WebAppModuleTests.class#L169
No <script src=...> found in publish index.html:
<!doctype html>
<html><head title="App"><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><link rel="icon" href="data:image/png;base64,iVBORw0KGgo=" /></head><body><script src="./main.a36617902af4584a.js" type="module"></script><div id="app"></div></body></html>
|
|
WebAppModuleTests.ScalaJsWebAppModule siteGen generates HTML with hashed script references:
out/plugin/integration/compile.dest/classes/io/github/quafadas/sjsls/WebAppModuleTests.class#L30
No <script src=...> found in index.html:
<!doctype html>
<html><head title="App"><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><link rel="icon" href="data:image/png;base64,iVBORw0KGgo=" /></head><body><script src="./main.6a49f42a34b97db4.js" type="module"></script><div id="app"></div><script>
const sse = new EventSource('/refresh/v1/sse');
sse.addEventListener('message', (e) => {
const msg = JSON.parse(e.data)
if ('KeepAlive' in msg)
console.log("KeepAlive")
if ('PageRefresh' in msg) {
console.log("PageRefresh @ " + new Date().toISOString());
location.reload();
}
});
</script></body></html>
|
|
Build and Test (ubuntu-latest, 3, temurin@21, jvm)
Process completed with exit code 1.
|
|
Build and Test (ubuntu-latest, 3, temurin@21, jvm)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: mikepenz/action-junit-report@v5. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|