Replies: 1 comment 2 replies
-
I suppose we could make some changes to not need installing when being run with But, thinking about what you said that having it installed adds in MB of cost on a deployment for you, you shouldn't have that at all. You are installing with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
npx react-email dev
Background
We've been using
npx
to run the react-email preview server because it has a lot of heavy dependencies that slow down development and deployment for no reason, because they aren't necessary for CI or for deployment.Using
npx
feels like a good solution to this problem: we runreact-email
on the fly when necessary, instead of having it add ~300MB to our node_modules directory. Using react-email shouldn't cost every single deployment of our application 300MB of cache or download size, and 4,246 extra lines inpackage-lock.json
. It also seems unnecessary: the whole point of npm binaries under npx is that you don't need to install them - why prompt an installation like that?Proposal
Ideally, react-email's dev server would be lightweight, but I know that's a pretty big undertaking. But why not make it possible to run the server without adding it to dependencies?
Beta Was this translation helpful? Give feedback.
All reactions