Skip to content

Commit c54a538

Browse files
committed
not using duplicate strings where it is easy to do so
1 parent 0a6b452 commit c54a538

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎lib/WebpackOptionsApply.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class WebpackOptionsApply extends OptionsApply {
7373
new JsonpTemplatePlugin(options.output),
7474
new FunctionModulePlugin(options.output),
7575
new NodeSourcePlugin(options.node),
76-
new LoaderTargetPlugin("web")
76+
new LoaderTargetPlugin(options.target)
7777
);
7878
break;
7979
case "webworker":
@@ -84,7 +84,7 @@ class WebpackOptionsApply extends OptionsApply {
8484
new WebWorkerTemplatePlugin(options.output),
8585
new FunctionModulePlugin(options.output),
8686
new NodeSourcePlugin(options.node),
87-
new LoaderTargetPlugin("webworker")
87+
new LoaderTargetPlugin(options.target)
8888
);
8989
break;
9090
}
@@ -110,7 +110,7 @@ class WebpackOptionsApply extends OptionsApply {
110110
new FunctionModulePlugin(options.output),
111111
new NodeTargetPlugin(),
112112
new ExternalsPlugin("commonjs", "nw.gui"),
113-
new LoaderTargetPlugin("node-webkit")
113+
new LoaderTargetPlugin(options.target)
114114
);
115115
break;
116116
case "atom":

0 commit comments

Comments
 (0)