diff --git a/lib/index.js b/lib/index.js index 70668a5..2d3fede 100644 --- a/lib/index.js +++ b/lib/index.js @@ -6,6 +6,10 @@ const WebpackHotMiddleware = require('webpack-hot-middleware'); const pkg = require('../package.json'); exports.register = function register(server, options, next) { + if (process.env.NODE_ENV === 'production') { + return next(); + } + const webpackConfig = options.webpack || {}; const webpackDevConfig = options.webpackDev || {}; const webpackHotConfig = options.webpackHot || {};