Diffdown is a real-time collaborative Markdown editor/previewer built on the AT Protocol diffdown.com

Add esbuild minification of editor.js in Docker build

Reduces editor.js from 1.1MB to 591KB (48%) using a separate
node:alpine build stage with npx esbuild --minify.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

+7
+7
Dockerfile
··· 1 + FROM node:alpine AS jsbuilder 2 + 3 + WORKDIR /build 4 + COPY static/vendor/editor.js ./editor.js 5 + RUN npx --yes esbuild editor.js --bundle=false --minify --outfile=editor.min.js 6 + 1 7 FROM golang:1.23-alpine AS builder 2 8 3 9 RUN apk add --no-cache gcc musl-dev ··· 17 23 COPY --from=builder /app/markdownhub . 18 24 COPY --from=builder /app/templates ./templates 19 25 COPY --from=builder /app/static ./static 26 + COPY --from=jsbuilder /build/editor.min.js ./static/vendor/editor.js 20 27 COPY --from=builder /app/migrations ./migrations 21 28 22 29 EXPOSE 8080