Skip to content

Commit

Permalink
not using duplicate strings where it is easy to do so
Browse files Browse the repository at this point in the history
  • Loading branch information
dmvjs committed Jun 30, 2017
1 parent 0a6b452 commit c54a538
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/WebpackOptionsApply.js
Expand Up @@ -73,7 +73,7 @@ class WebpackOptionsApply extends OptionsApply {
new JsonpTemplatePlugin(options.output),
new FunctionModulePlugin(options.output),
new NodeSourcePlugin(options.node),
new LoaderTargetPlugin("web")
new LoaderTargetPlugin(options.target)
);
break;
case "webworker":
Expand All @@ -84,7 +84,7 @@ class WebpackOptionsApply extends OptionsApply {
new WebWorkerTemplatePlugin(options.output),
new FunctionModulePlugin(options.output),
new NodeSourcePlugin(options.node),
new LoaderTargetPlugin("webworker")
new LoaderTargetPlugin(options.target)
);
break;
}
Expand All @@ -110,7 +110,7 @@ class WebpackOptionsApply extends OptionsApply {
new FunctionModulePlugin(options.output),
new NodeTargetPlugin(),
new ExternalsPlugin("commonjs", "nw.gui"),
new LoaderTargetPlugin("node-webkit")
new LoaderTargetPlugin(options.target)
);
break;
case "atom":
Expand Down

0 comments on commit c54a538

Please sign in to comment.