Skip to content

Commit 4a2ff2a

Browse files
committed
Update build
1 parent 647e662 commit 4a2ff2a

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

Dockerfile

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,6 @@ FROM nginx:1.25-alpine
1717
# Copy built assets
1818
COPY --from=builder /app/dist/browser /usr/share/nginx/html
1919

20-
# Copy wasm manually (Angular asset config doesn't work reliably)
21-
COPY --from=builder /app/node_modules/@openworkers/croner-wasm/dist/*.wasm /usr/share/nginx/html/assets/wasm/
22-
23-
# Add wasm MIME type
24-
RUN echo 'types { application/wasm wasm; }' >> /etc/nginx/mime.types
25-
2620
# SPA routing config
2721
RUN cat <<'EOF' > /etc/nginx/conf.d/default.conf
2822
server {

angular.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
"glob": "**/*",
108108
"input": "./node_modules/monaco-editor/min-maps",
109109
"output": "assets/monaco-editor/min-maps"
110+
},
111+
{
112+
"glob": "*.wasm",
113+
"input": "node_modules/@openworkers/croner-wasm/dist",
114+
"output": "assets/wasm"
110115
}
111116
]
112117
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "app",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"scripts": {
55
"ng": "ng",
66
"dev": "ng serve --host 127.0.0.1",

0 commit comments

Comments
 (0)