From d274236257069217e285dfbc6a67fb2bf53d34fe Mon Sep 17 00:00:00 2001 From: Sam Tiffin Date: Wed, 21 Sep 2016 15:42:59 +0100 Subject: [PATCH] Require pick method from lodash --- tasks/webpack-dev-server.js | 3 ++- tasks/webpack.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/webpack-dev-server.js b/tasks/webpack-dev-server.js index 5007269..b55b368 100644 --- a/tasks/webpack-dev-server.js +++ b/tasks/webpack-dev-server.js @@ -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); @@ -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; diff --git a/tasks/webpack.js b/tasks/webpack.js index 72c0e48..7a0dd5b 100644 --- a/tasks/webpack.js +++ b/tasks/webpack.js @@ -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); @@ -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];