Skip to content

Commit 4396de3

Browse files
authored
Merge pull request webpack#6485 from webpack/TheLarkInn-patch-1
Set nodeEnv to default to "production"
2 parents 60275c3 + 331c011 commit 4396de3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/WebpackOptionsDefaulter.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class WebpackOptionsDefaulter extends OptionsDefaulter {
213213
}).apply(compiler);
214214
}
215215
}]);
216-
this.set("optimization.nodeEnv", "make", options => options.mode);
216+
this.set("optimization.nodeEnv", "make", options => options.mode || "production");
217217

218218
this.set("resolve", "call", value => Object.assign({}, value));
219219
this.set("resolve.unsafeCache", true);

0 commit comments

Comments
 (0)