From 406829d63db2790090f759fa15212038f0babecc Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Thu, 28 Jun 2018 21:37:25 -0700 Subject: [PATCH] webpack-dev-hapi plugin depends on WEBPACK_DEV also --- .../generator-electrode/generators/config/templates/default.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/generator-electrode/generators/config/templates/default.js b/packages/generator-electrode/generators/config/templates/default.js index 51cc0bc42..db0863cfd 100644 --- a/packages/generator-electrode/generators/config/templates/default.js +++ b/packages/generator-electrode/generators/config/templates/default.js @@ -22,7 +22,7 @@ module.exports = { plugins: { "webpack-dev": { module: "electrode-archetype-react-app-dev/lib/webpack-dev-hapi", - enable: process.env.WEBPACK_DEV_MIDDLEWARE === "true" + enable: process.env.WEBPACK_DEV_MIDDLEWARE === "true" && process.env.WEBPACK_DEV === "true" }, inert: { enable: true