Browse Source

fix: exclude webpack config from prod bundle

Signed-off-by: rare-magma <rare-magma@posteo.eu>
pull/3642/head
rare-magma 1 year ago
committed by Thomas Kaul
parent
commit
06b7f95b96
  1. 2
      Dockerfile
  2. 3
      nx.json

2
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

3
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=",

Loading…
Cancel
Save