From f37cb76f6f1e599d5ace6bc443b771ac93e2247d Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Tue, 28 Sep 2021 17:09:31 +1000 Subject: [PATCH] feat(web): remove sourcemap generation (#2423) --- Dockerfile.coverage | 2 +- Dockerfile.dev | 2 +- cmd/authelia-scripts/cmd_build.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.coverage b/Dockerfile.coverage index 5f1bece69..a62918502 100644 --- a/Dockerfile.coverage +++ b/Dockerfile.coverage @@ -8,7 +8,7 @@ WORKDIR /node/src/app COPY web ./ # Install the dependencies and build -RUN yarn install --frozen-lockfile && INLINE_RUNTIME_CHUNK=false yarn coverage +RUN yarn install --frozen-lockfile && GENERATE_SOURCEMAP=false INLINE_RUNTIME_CHUNK=false yarn coverage # ======================================= # ===== Build image for the backend ===== diff --git a/Dockerfile.dev b/Dockerfile.dev index 62abb43cb..ad8333680 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -8,7 +8,7 @@ WORKDIR /node/src/app COPY web ./ # Install the dependencies and build -RUN yarn install --frozen-lockfile && INLINE_RUNTIME_CHUNK=false yarn coverage +RUN yarn install --frozen-lockfile && GENERATE_SOURCEMAP=false INLINE_RUNTIME_CHUNK=false yarn coverage # ======================================= # ===== Build image for the backend ===== diff --git a/cmd/authelia-scripts/cmd_build.go b/cmd/authelia-scripts/cmd_build.go index 0fdbe3b13..6f9e44c00 100644 --- a/cmd/authelia-scripts/cmd_build.go +++ b/cmd/authelia-scripts/cmd_build.go @@ -77,7 +77,7 @@ func buildFrontend() { cmd = utils.CommandWithStdout("yarn", "build") cmd.Dir = webDirectory - cmd.Env = append(os.Environ(), "INLINE_RUNTIME_CHUNK=false") + cmd.Env = append(os.Environ(), "GENERATE_SOURCEMAP=false", "INLINE_RUNTIME_CHUNK=false") err = cmd.Run() if err != nil {