diff --git a/lib/font-loader.js b/lib/font-loader.js index d3b121e..fb17d67 100644 --- a/lib/font-loader.js +++ b/lib/font-loader.js @@ -63,9 +63,9 @@ function getExtension(format) { function createTargets(source, options) { options = _.defaults(_.pick(options, 'weight', 'style', 'format'), { - weight: _.chain(source).pluck('weight').uniq().value(), - style: _.chain(source).pluck('style').uniq().value(), - format: _.chain(source).pluck('format').uniq().value() + weight: _.chain(source).map('weight').uniq().value(), + style: _.chain(source).map('style').uniq().value(), + format: _.chain(source).map('format').uniq().value() }); return multiplex(options); } diff --git a/package.json b/package.json index 195f7b5..f846153 100644 --- a/package.json +++ b/package.json @@ -8,11 +8,11 @@ "dependencies": { "bluebird": "^2.9.26", "loader-utils": "^0.2.7", - "lodash": "^3.8.0", + "lodash": "^4.17.15", "option-multiplexer": "^0.1.0", "svg2ttf": "^2.0.0", - "ttf2eot": "^1.3.0", - "ttf2woff": "^1.3.0" + "ttf2eot": "^2.0.0", + "ttf2woff": "^2.0.1" }, "devDependencies": { "babel-eslint": "^3.0.1",