Set frontend dependencies (and nodemon) to devDependencies. This comes in handy for:
Multi-stage Dockerfiles. The image is built in two separate images: the first builds the image and separates the devDependencies from dependencies. The second is a 'clean' image and copies over only the production dependencies and build artifacts (from dist).
This combined reduces the size of the docker image by quite a lot:
This PR has two changes:
devDependencies
. This comes in handy for:devDependencies
fromdependencies
. The second is a 'clean' image and copies over only the productiondependencies
and build artifacts (from dist).This combined reduces the size of the docker image by quite a lot: