diff --git a/lib/plugins/console/deploy.js b/lib/plugins/console/deploy.js index 433f0f272f..ffde64e975 100644 --- a/lib/plugins/console/deploy.js +++ b/lib/plugins/console/deploy.js @@ -1,7 +1,5 @@ 'use strict'; -const assignIn = require('lodash/assignIn'); -const clone = require('lodash/clone'); const fs = require('hexo-fs'); const chalk = require('chalk'); const Promise = require('bluebird'); @@ -23,7 +21,7 @@ function deployConsole(args) { } return new Promise((resolve, reject) => { - const generateArgs = clone(args); + const generateArgs = {...args}; generateArgs.d = false; generateArgs.deploy = false; @@ -52,7 +50,7 @@ function deployConsole(args) { this.log.info('Deploying: %s', chalk.magenta(type)); - return Reflect.apply(deployers[type], this, [assignIn({}, item, args)]).then(() => { + return Reflect.apply(deployers[type], this, [Object.assign({}, item, args)]).then(() => { this.log.info('Deploy done: %s', chalk.magenta(type)); }); }).then(() => {