-
Notifications
You must be signed in to change notification settings - Fork 4
/
webpack.config.js
27 lines (25 loc) · 1.03 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
const defaultConfig = require( "@wordpress/scripts/config/webpack.config" );
const path = require( 'path' );
const CopyPlugin = require( "copy-webpack-plugin" );
// Configuration object.
const config = {
...defaultConfig,
entry: {
'../includes/admin/admin': './src/admin/index.js',
'../includes/admin/settings-models': './src/admin/models.js',
'../includes/public/public': './src/public/index.js',
'../blocks/avatar-profile/avatar-profile': './src/blocks/avatar-profile/index.js',
'../blocks/grid-info/grid-info': './src/blocks/grid-info/index.js',
'../blocks/grid-status/grid-status': './src/blocks/grid-status/index.js',
'../blocks/popular-places/popular-places': './src/blocks/popular-places/index.js',
'../blocks/web-search/web-search': './src/blocks/web-search/index.js',
// '../blocks/events/index': './src/blocks/events/index.js',
},
output: {
filename: '[name].js',
// Specify the path to the JS files.
path: path.resolve( __dirname, 'build' ),
},
}
// Export the config object.
module.exports = config;