Skip to content

Commit 96fa0ef

Browse files
authored
Fix hanging when using options (#149)
1 parent a7c808e commit 96fa0ef

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tasks/webpack-dev-server.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ npm install --save-dev webpack-dev-server
5656
let keepalive = false;
5757

5858
targets.forEach((target) => {
59-
if (target === 'options') return;
59+
if (target === 'options') {
60+
runningTargetCount--;
61+
return;
62+
}
63+
6064
const optionHelper = new OptionHelper(grunt, this.name, target);
6165
const opts = optionHelper.getOptions();
6266
const webpackOptions = optionHelper.getWebpackOptions();

tasks/webpack.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ module.exports = (grunt) => {
1717
let keepalive = false;
1818

1919
targets.forEach((target) => {
20-
if (target === 'options') return;
20+
if (target === 'options') {
21+
runningTargetCount--;
22+
return;
23+
}
2124

2225
const optionHelper = new OptionHelper(grunt, this.name, target);
2326

0 commit comments

Comments
 (0)