feat(web): remove sourcemap generation (#2423)

pull/2420/head^2
Amir Zarrinkafsh 2021-09-28 17:09:31 +10:00 committed by GitHub
parent c9f5b3de88
commit f37cb76f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ WORKDIR /node/src/app
COPY web ./ COPY web ./
# Install the dependencies and build # 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 ===== # ===== Build image for the backend =====

View File

@ -8,7 +8,7 @@ WORKDIR /node/src/app
COPY web ./ COPY web ./
# Install the dependencies and build # 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 ===== # ===== Build image for the backend =====

View File

@ -77,7 +77,7 @@ func buildFrontend() {
cmd = utils.CommandWithStdout("yarn", "build") cmd = utils.CommandWithStdout("yarn", "build")
cmd.Dir = webDirectory 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() err = cmd.Run()
if err != nil { if err != nil {