-
Notifications
You must be signed in to change notification settings - Fork 16
/
ez.config.manager.js
26 lines (24 loc) · 1.1 KB
/
ez.config.manager.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
const path = require('path');
module.exports = (eZConfig, eZConfigManager) => {
const addEntry = ([entryName, newItems]) => {
if (eZConfig.entry[entryName]) {
eZConfigManager.add({
eZConfig,
entryName,
newItems,
});
}
};
const seleniumDebugStylePath = path.resolve(__dirname, '../public/css/selenium-debug.css');
const dragMockScriptPath = path.resolve(__dirname, '../public/js/scripts/drag-mock.js');
const transitionListenerScriptPath = path.resolve(__dirname, '../public/js/scripts/transition-listener.js');
const scriptsMap = {
'ezplatform-admin-ui-layout-css': [seleniumDebugStylePath],
'ezplatform-admin-ui-security-base-css': [seleniumDebugStylePath],
'ezplatform-page-builder-edit-js': [dragMockScriptPath],
'ezplatform-form-builder-common-js': [dragMockScriptPath],
'ezcommerce-shop-pagelayout-css': [seleniumDebugStylePath],
'ezplatform-admin-ui-layout-js': [transitionListenerScriptPath],
};
Object.entries(scriptsMap).forEach(addEntry);
};