Skip to content

Commit 7398468

Browse files
guguclaude
andcommitted
fix: copy frontend/browserslist into Docker build context
Without this file present in /app/frontend during the production build, Angular falls back to the default browserslist (broader, older browser targets), which forces extra transpilation and inflates the initial bundle past the 5MB budget. Copying the committed browserslist preserves the intended modern targets and keeps the bundle within budget. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 7b279d7 commit 7398468

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG VERSION
33
ARG SAAS
44
SHELL ["/bin/bash", "-c"]
55
WORKDIR /app/frontend
6-
COPY frontend/package.json frontend/yarn.lock frontend/angular.json frontend/tsconfig.app.json frontend/tsconfig.json /app/frontend/
6+
COPY frontend/package.json frontend/yarn.lock frontend/angular.json frontend/browserslist frontend/tsconfig.app.json frontend/tsconfig.json /app/frontend/
77
COPY frontend/.yarn /app/frontend/.yarn
88
RUN apt-get update && apt-get install -y \
99
git \

0 commit comments

Comments
 (0)