Skip to content

Commit

Permalink
Use lodash.assign directly.
Browse files Browse the repository at this point in the history
This is needed for node.js < 4.
  • Loading branch information
XhmikosR committed Jul 19, 2016
1 parent f458298 commit 1217530
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -17,6 +17,7 @@
},
"dependencies": {
"chalk": "^1.0.0",
"lodash.assign": "^4.0.9",
"maxmin": "^1.1.0",
"uglify-js": "~2.6.2",
"uri-path": "^1.0.0"
Expand Down
3 changes: 2 additions & 1 deletion tasks/lib/uglify.js
Expand Up @@ -11,6 +11,7 @@
// External libs.
var path = require('path');
var UglifyJS = require('uglify-js');
var assign = require('lodash.assign');
var uriPath = require('uri-path');
var getOutputOptions;

Expand Down Expand Up @@ -268,7 +269,7 @@ exports.init = function(grunt) {

if (options.beautify) {
if (typeof options.beautify === 'object') {
Object.assign(outputOptions, options.beautify);
assign(outputOptions, options.beautify);
} else {
outputOptions.beautify = true;
}
Expand Down

0 comments on commit 1217530

Please sign in to comment.