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];