From 06b7f95b96f4afb258315ab433d34cbc543fa1e9 Mon Sep 17 00:00:00 2001 From: rare-magma Date: Mon, 5 Aug 2024 21:15:27 +0200 Subject: [PATCH] fix: exclude webpack config from prod bundle Signed-off-by: rare-magma --- Dockerfile | 2 -- nx.json | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 513f623e4..dbd3f7eb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,8 +37,6 @@ RUN npm run build:production # Prepare the dist image with additional node_modules WORKDIR /ghostfolio/dist/apps/api -# Exclude unnecessary dev deps -RUN sed -i '/@nx/d' package.json # package.json was generated by the build process, however the original # package-lock.json needs to be used to ensure the same versions COPY ./package-lock.json /ghostfolio/dist/apps/api/package-lock.json diff --git a/nx.json b/nx.json index 5adb8983b..439319dfc 100644 --- a/nx.json +++ b/nx.json @@ -66,7 +66,8 @@ "!{projectRoot}/.storybook/**/*", "!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)", "!{projectRoot}/tsconfig.storybook.json", - "!{projectRoot}/src/test-setup.[jt]s" + "!{projectRoot}/src/test-setup.[jt]s", + "!{projectRoot}/webpack.config.js" ] }, "nxCloudAccessToken": "Mjg0ZGQ2YjAtNGI4NS00NmYwLThhOWEtMWZmNmQzODM4YzU4fHJlYWQ=",