code: function getEntries(config, env) {
    let entries = {
      main: []
    };
  
    //default entry point
    entries.main.push(path.resolve(config.sourceDir, 'index'));
  
    //svg-sprite
    if (utils.isFileExists(config.svgSpriteDir)) {
      entries.main.unshift(path.resolve(__dirname, './entries/svg-sprite.js'));
    }
  
    //extend default entries
    if (config.extendEntries && typeof config.extendEntries == 'object') {
      entries = merge(entries, config.extendEntries);
    }
  
    if (env === 'development') {
      let entryKeys = Object.keys(entries);
      entryKeys.forEach(function (e) {
        if (typeof entries[e] === 'string') {
          entries[e] = [entries[e]]
        }
        entries[e].unshift('webpack-hot-middleware/client?reload=true');
      });
    }
  
    return entries;
  }
docs: Entries
  @param config
  @param env
  @returns {Array}