Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Commit

Permalink
fix(controls): don't orphan webpack process when webpack config is ch…
Browse files Browse the repository at this point in the history
…anged (fixes #115)
  • Loading branch information
connor4312 committed Jun 12, 2018
1 parent 04020f9 commit 4c3365b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/editor/controls/control.effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import {
isRunning,
IWebpackInstance,
PromptLocateWebpackConfig,
RestartWebpack,
SendControlPacket,
SetWebpackInstance,
StartWebpack,
Expand Down Expand Up @@ -230,7 +231,7 @@ export class ControlEffects {
switchMap(([, directory]) =>
this.electron
.call(ControlsMethods.SetWebpackConfig, { directory })
.then(path => (path ? new StartWebpack() : null)),
.then(path => (path ? new RestartWebpack() : null)),
),
truthy(),
);
Expand Down

0 comments on commit 4c3365b

Please sign in to comment.