webpack.config.js
function getEntries(dirName) {
  const entries = {};
  getExamples(dirName, (entryName, filename) => {
    entries[entryName] = filename;
  });
  return entries;
}
function getEntries(dirName) {
  const entries = {};
  getExamples(dirName, (entryName, filename) => {
    entries[entryName] = filename;
  });
  return entries;
}
function getEntries ( dirName ) { const entries = { } ; getExamples ( dirName , ( entryName , filename ) => { entries [ entryName ] = filename ; } ) ; return entries ; }
Creates an object with the entry names and file names
to be transformed.

@param {String} dirName - Name of the directory to read.

@returns {Object} with webpack entry points.
Creates an object with the entry names and file names to be transformed .