[X] I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
Often when deploying NodeJS apps to Docker, it is a space-saving practice to not include the source files in the Docker image and only copy over the dist files. It is also common to not include any devDependencies in the node_modules of deployed Docker images either.
This project seems to currently require the existence of both vite and the vite "root" directory, neither of which exist in Docker environments. Especially when using TypeScript, the vite "root" directory is usually an src directory that is full of .ts files -- not a directory that should be included in the final Docker image.
Prerequisites
🚀 Feature Proposal
Often when deploying NodeJS apps to Docker, it is a space-saving practice to not include the source files in the Docker image and only copy over the dist files. It is also common to not include any
devDependencies
in thenode_modules
of deployed Docker images either.This project seems to currently require the existence of both
vite
and the vite "root" directory, neither of which exist in Docker environments. Especially when using TypeScript, the vite "root" directory is usually ansrc
directory that is full of.ts
files -- not a directory that should be included in the final Docker image.Motivation
No response
Example
No response