Closed secit-pl closed 7 years ago
Now the bundle will just exit with status code 0
for both compile
and dev-server
if there are no entry points.
➜ webpack2 bin/console maba:webpack:dev-server
No entry points found - not running webpack
I'd looked into making dev-server
still running and watching for changes in twig files, but there are some issues with PHP process handling:
sh
command, which leaves child process running after quitting main PHP process. This is fixed with adding exec
in front of command;exec
and process is stopped manually (webpack-dev-server
in this case), signals from the terminal are passed to the "zombie" child process and not to the PHP itself;dev-server
is running, but process can see that dev-server
has stopped so it stops also.To sum it up - either process quits together with child process, either it cannot be stopped with Ctrl+C
and needs manual killing.
Feel free to suggest any workarounds to handle this situation.
I'll create an issue in Process component with simplified use case.
If I run the
maba:webpack:dev-server
on the application where are no assets defined the server start will fail with the following error:IMHO the bundle should prevent from throwing such errors.