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.
Fixes #66
When
NODE_ENV=production
by default npm will not installdevDependencies
, and it is considered a best practice to not deploy your application with anydevDependencies
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 relocatesexpress
todependencies
since it's required at both build time and in production.