Update webpack for more possible future entry points

This commit is contained in:
Kelly Dwan 2018-05-04 10:44:19 -04:00
parent 810711993f
commit 658281ea81
1 changed files with 5 additions and 3 deletions

View File

@ -53,11 +53,13 @@ coreGlobals.forEach( ( name ) => {
const webpackConfig = {
mode: NODE_ENV,
entry: './js/src/index.js',
entry: {
index: './js/src/index.js',
},
output: {
path: path.resolve( 'js' ),
filename: 'index.js',
library: [ 'wp', 'woodash' ],
filename: '[name].js',
library: [ 'wp', 'woodash', '[name]' ],
libraryTarget: 'this',
},
externals,