Skip to content

Commit

Permalink
Explicitly target entry modules
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored and youknowriad committed Mar 24, 2017
1 parent 09bf3d1 commit 156161d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const BASE_PATH = './modules';
*
* @type {Object}
*/
const entry = glob.sync( `${ BASE_PATH }/*/index.js` ).reduce( ( memo, filename ) => {
const parent = path.relative( BASE_PATH, path.dirname( filename ) );
memo[ parent ] = filename;
return memo;
const entry = [ 'blocks', 'editor', 'element' ].reduce( ( memo, submodule ) => {
return Object.assign( memo, {
[ submodule ]: [ BASE_PATH, submodule, 'index.js' ].join( '/' )
} );
}, {} );

const config = {
Expand Down

0 comments on commit 156161d

Please sign in to comment.