Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the use of dependencies vs devDependencies #5531

Closed
jrop opened this issue Oct 26, 2018 · 1 comment
Closed

Document the use of dependencies vs devDependencies #5531

jrop opened this issue Oct 26, 2018 · 1 comment

Comments

@jrop
Copy link

jrop commented Oct 26, 2018

Question about Next.js

(I posed a question over in spectrum, but got no answer; I hope I am not spamming here)

First things first: I am absolutely loving Next.JS! It is so much simpler to use than other React frameworks out there, and gives a lot of stuff out-of-the-box in a simple-to-grasp way. Thanks!

Now for my question: the documentation seems kind of slim on how production builds work: what is needed as far as dependencies go? Are all the DevTools shipped (babel, WebPack, etc.) in production? Also, when I add a framework, (say material-ui), does that need to be in my dependencies or devDependencies?

I ask because, when building for Docker, I would like to create the smallest image possible, and when I add a framework (such as material-ui) I am accustomed to adding it as a devDependency. However, with NextJS, it is unclear to me what the runtime needs are: does NextJS need such dependencies for SSR, etc.?

If sufficient explanation is given here, I wouldn't mind condensing it into a PR for the docs, as I wish this was more clearly explained.

Thanks!

@timneutkens
Copy link
Member

You can read this: #4496

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants