From f248591a27a76c90720aec4dbabb536aa82ebdc9 Mon Sep 17 00:00:00 2001 From: Steven Pribilinskiy Date: Mon, 24 Jul 2017 11:53:25 +0300 Subject: [PATCH] Fix WEBPACK_MODE value for webpack-dev-server --- src/Webpack/Compiler/WebpackProcessBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Webpack/Compiler/WebpackProcessBuilder.php b/src/Webpack/Compiler/WebpackProcessBuilder.php index 0227d1c..236c07b 100644 --- a/src/Webpack/Compiler/WebpackProcessBuilder.php +++ b/src/Webpack/Compiler/WebpackProcessBuilder.php @@ -110,7 +110,7 @@ public function buildDevServerProcess(WebpackConfigModel $config, $isDevServer) } $processBuilder->setTimeout(0); - $processBuilder->setEnv('WEBPACK_MODE', 'watch'); + $processBuilder->setEnv('WEBPACK_MODE', $isDevServer ? 'server' : 'watch'); $process = $this->buildProcess($processBuilder);