NX node_modules in the docker image is too large

Viewed 25

Since the docker image is too large in my next project, is there any way to lighten node_modules through the following implementation?

  1. partially install dependencies, i.e. exclude the sub-dependency that is not used in the project
  2. remove specific sub-dependency
0 Answers
Related