From 8bc3e5e2a5b8648ec90f7f7e8042a3cea36a5e7a Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Thu, 31 Mar 2016 12:24:33 -0400 Subject: [PATCH] Don't require dev dependencies in production --- server/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/index.js b/server/index.js index f1727c2fb..9931888a5 100644 --- a/server/index.js +++ b/server/index.js @@ -7,8 +7,6 @@ var express = require('express'); var path = require('path'); var proxy = require('express-http-proxy'); var url = require('url'); -var webpackDevMiddleware = require('webpack-dev-middleware'); -var webpack = require('webpack'); var handler = require('./handler'); var log = require('./log'); @@ -72,6 +70,8 @@ if (typeof process.env.NODE_SENTRY_DSN === 'string') { if (!isProduction) { // Use webpack-dev-server in development + var webpackDevMiddleware = require('webpack-dev-middleware'); + var webpack = require('webpack'); var compiler = webpack(require('../webpack.config.js')); app.use(webpackDevMiddleware(compiler, { headers: {