Update webpack for more possible future entry points
This commit is contained in:
parent
810711993f
commit
658281ea81
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue