add http-server part 6.1.2

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

@ -7,6 +7,6 @@
<body>
<h1>Mein Button</h1>
<button id="myButton">Klick mich!</button>
<script type="module" src="./event.cjs"></script>
<script type="module" src="./event.mjs"></script>
</body>
</html>