mirror of https://github.com/webpack/webpack.git
Run through beautify
This commit is contained in:
parent
d7b0f31281
commit
9f30c6e68a
|
|
@ -7,16 +7,12 @@ var DefinePlugin = require("./DefinePlugin");
|
|||
function EnvironmentPlugin(keys) {
|
||||
this.defaultValues = {};
|
||||
|
||||
if (Array.isArray(keys)) {
|
||||
if(Array.isArray(keys)) {
|
||||
this.keys = keys;
|
||||
}
|
||||
|
||||
else if (keys === Object(keys)) {
|
||||
} else if(keys === Object(keys)) {
|
||||
this.keys = Object.keys(keys);
|
||||
this.defaultValues = keys;
|
||||
}
|
||||
|
||||
else {
|
||||
} else {
|
||||
this.keys = Array.prototype.slice.call(arguments);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue