Skip to content

Commit

Permalink
Use --watch-stdin flag to not leave webpack processes hanging
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Mar 5, 2018
1 parent 51223b8 commit 89cdcfb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion installer/templates/phx_single/config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config :<%= app_name %>, <%= endpoint_module %>,
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: <%= if webpack do %>[node: ["node_modules/webpack/bin/webpack.js", "--mode", "development", "--watch",
watchers: <%= if webpack do %>[node: ["node_modules/webpack/bin/webpack.js", "--mode", "development", "--watch-stdin",
cd: Path.expand("../assets", __DIR__)]]<% else %>[]<% end %>

# ## SSL Support
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ config :<%= app_name %>, <%= endpoint_module %>,
debug_errors: true,
code_reloader: true,
check_origin: false,
watchers: <%= if webpack do %>[node: ["node_modules/webpack/bin/webpack.js", "--mode", "development", "--watch",
watchers: <%= if webpack do %>[node: ["node_modules/webpack/bin/webpack.js", "--mode", "development", "--watch-stdin",
cd: Path.expand("../assets", __DIR__)]]<% else %>[]<% end %>

# ## SSL Support
Expand Down

0 comments on commit 89cdcfb

Please sign in to comment.