add http-server part 6.1.2
All checks were successful
ci / build (push) Successful in 1m5s

This commit is contained in:
Christopher Hase 2025-04-10 10:51:23 +02:00
parent 87b66afff9
commit 0f6dda2a5b
2 changed files with 10 additions and 10 deletions

View file

@ -32,7 +32,7 @@ COPY --from=rust-build /usr/local/cargo/bin/iching /usr/local/bin/iching
### NEW ###
RUN find dist/backend -name "*.js" -exec bash -c 'mv "$0" "${0%.js}.mjs"' {} \;
RUN find dist/frontend -name "*.js" -exec bash -c 'mv "$0" "${0%.js}.cjs"' {} \;
RUN find dist/frontend -name "*.js" -exec bash -c 'mv "$0" "${0%.js}.mjs"' {} \;
#RUN mkdir -p dist/iching
#RUN cp dist/*.js dist/iching/

View file

@ -1,12 +1,12 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<title>Button mit TypeScript</title>
</head>
<body>
<h1>Mein Button</h1>
<button id="myButton">Klick mich!</button>
<script type="module" src="./event.cjs"></script>
</body>
<head>
<meta charset="UTF-8">
<title>Button mit TypeScript</title>
</head>
<body>
<h1>Mein Button</h1>
<button id="myButton">Klick mich!</button>
<script type="module" src="./event.mjs"></script>
</body>
</html>