-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
24 lines (23 loc) · 936 Bytes
/
Copy pathwebpack.config.js
File metadata and controls
24 lines (23 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* Webpack configuration for Agent Builder admin React surfaces.
*
* Extends the default @wordpress/scripts config and declares a named entry
* per admin surface so the generated bundle and its companion .asset.php
* file are predictably named (e.g. build/interface-settings.js +
* build/interface-settings.asset.php).
*/
const defaultConfig = require( '@wordpress/scripts/config/webpack.config' );
module.exports = {
...defaultConfig,
entry: {
'interface-settings': './src/interface-settings/index.js',
'dashboard-activity': './src/dashboard-activity/index.js',
'dashboard-app': './src/dashboard-app/index.js',
'agent-wizard': './src/agent-wizard/index.js',
'knowledge-wizard': './src/knowledge-wizard/index.js',
'deploy-wizard': './src/deploy-wizard/index.js',
'settings-app': './src/settings-app/index.js',
'admin-list': './src/admin-list/index.js',
'admin-pages': './src/admin-pages/index.js',
},
};