Skip to content

Commit

Permalink
Fix WEBPACK_MODE value for webpack-dev-server
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-pribilinskiy committed Jul 24, 2017
1 parent 6ab7079 commit f248591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Webpack/Compiler/WebpackProcessBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f248591

Please sign in to comment.