Skip to content

Commit

Permalink
Require pick method from lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
samtiffin authored and danez committed Oct 10, 2016
1 parent 7d644da commit d274236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tasks/webpack-dev-server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var path = require("path");
var mergeWith = require("lodash/mergeWith");
var pick = require("lodash/pick");

module.exports = function(grunt) {
var getWithPlugins = require("../src/getWithPlugins")(grunt);
Expand Down Expand Up @@ -69,7 +70,7 @@ module.exports = function(grunt) {
});
}

var compiler = webpack(_.pick(options.webpack, validWebpackOptions));
var compiler = webpack(pick(options.webpack, validWebpackOptions));

if(options.progress) {
var chars = 0;
Expand Down
3 changes: 2 additions & 1 deletion tasks/webpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var mergeWith = require("lodash/mergeWith");
var map = require("lodash/map");
var isString = require("lodash/isString");
var isArray = require("lodash/isArray");
var pick = require("lodash/pick");

module.exports = function(grunt) {
var getWithPlugins = require("../src/getWithPlugins")(grunt);
Expand Down Expand Up @@ -85,7 +86,7 @@ module.exports = function(grunt) {
var statsOptions = firstOptions.stats;
var failOnError = firstOptions.failOnError;
var progress = firstOptions.progress;
var compiler = webpack(_.pick(options, validWebpackOptions));
var compiler = webpack(pick(options, validWebpackOptions));

if(cache) {
var theCachePlugin = targetCachePlugins[target];
Expand Down

0 comments on commit d274236

Please sign in to comment.