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

Only require devDependencies when NODE_ENV is not production #81

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jmorrell
Copy link

Fixes #66

When NODE_ENV=production by default npm will not install devDependencies, and it is considered a best practice to not deploy your application with any devDependencies installed, otherwise they are direct dependencies of your application.

However if you try to do that with this boilerplate it will crash since it requires webpack and related tools even in production. This PR moves those requires behind the conditional and relocates express to dependencies since it's required at both build time and in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant