fastify / fastify-vite

Fastify plugin for Vite integration.
MIT License
849 stars 71 forks source link

Should not need to resolveViteConfig in production mode #155

Open onlywei opened 1 month ago

onlywei commented 1 month ago

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 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.

Motivation

No response

Example

No response