code: function importResources({ paths = [], dist = '', needDirPath = true } = {}, doneCallback) {
    try {
      if (dist.length === 0) {
        throw  'ERROR: [option.dist] is required';
      }
    } catch (e) {
      console.log(e.red);
      process.env.exit(0);
    }
    console.log('ImportResources ...');
    /**
     * 获取全部文件的路径
     * @param paths
     * @param callback
     */
    const getPathsAllFiles = (paths, callback) => {
      let allFiles = [];
      const absolutePaths = paths.map(path => Path.join(rootPath, path));
      async.eachLimit(absolutePaths, 1, (path, next) => {
        glob(path, {}, (err, files) => {
          if (err) {
            console.log(err);
          } else {
            allFiles = [...allFiles, ...files];
          }
          next();
        });
      }, () => callback && callback(allFiles));
    }
  
    /**
     * 复制文件
     * @param files
     * @param callback
     */
    const copyFiles = (files, callback) => {
      async.eachLimit(files, 1, (filePath, next) => {
        const outputPath = needDirPath ? Path.relative(rootPath, filePath) : Path.basename(filePath);
        console.log(`Copy ${outputPath}`);
        fse.copy(filePath, Path.join(dist, outputPath), function (err) {
          if (err) {
            console.error(err);
          }
          next();
        });
      }, () => {
        callback && callback();
        doneCallback && doneCallback();
      });
    }
  
    getPathsAllFiles(paths, file => copyFiles(file, () => {
      console.log('ImportResources ' + '[SUCCESS]'.green);
    }));
  
    return module.exports;
  }
docs: 导入资源
  @param {Object} options
  @param {String []} paths
  @param {String} dist