generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 42
/
fec.config.js
68 lines (67 loc) · 2.07 KB
/
fec.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* global module, __dirname */
const { resolve } = require('path');
// const deps = require('./package.json').dependencies;
module.exports = {
appUrl: '/edge',
useProxy: true,
proxyVerbose: true,
moduleFederation: {
exposes: {
// Application root
'./RootApp': resolve(__dirname, './src/AppEntry'),
// expose System detail to be used on insights
'./Inventory': resolve(__dirname, './src/Routes/Devices/Inventory.js'),
'./InventoryDetail': resolve(
__dirname,
'./src/Routes/DeviceDetail/DeviceDetail.js'
),
'./Images': resolve(__dirname, './src/Routes/ImageManager/Images.js'),
'./ImagesSetTable': resolve(
__dirname,
'./src/Routes/ImageManager/ImageSetsTable.js'
),
'./ImagesDetail': resolve(
__dirname,
'./src/Routes/ImageManagerDetail/ImageDetail.js'
),
'./ImagesInformationCard': resolve(
__dirname,
'./src/components/ImageInformationCard.js'
),
'./DeviceTable': resolve(
__dirname,
'./src/Routes/Devices/DeviceTable.js'
),
'./DevicesView': resolve(
__dirname,
'./src/Routes/Devices/DevicesView.js'
),
'./DevicesGroupDetail': resolve(
__dirname,
'./src/Routes/Devices/DevicesGroupDetail.js'
),
'./Groups': resolve(__dirname, './src/Routes/Groups/Groups.js'),
'./GroupsDetails': resolve(
__dirname,
'./src/Routes/GroupsDetail/GroupsDetail.js'
),
'./UpdateDeviceModal': resolve(
__dirname,
'./src/Routes/Devices/UpdateDeviceModal.js'
),
'./UpdateImageModal': resolve(
__dirname,
'./src/Routes/DeviceDetail/UpdateImageModal.js'
),
'./UpdateSystem': resolve(
__dirname,
'./src/Routes/Devices/UpdateSystem.js'
),
},
// Doesn't work now due to a bug in fec https://github.com/RedHatInsights/frontend-components/pull/2076
// shared: [
// { 'react-redux': { requiredVersion: deps['react-redux'] } },
// ],
exclude: ['react-router-dom'],
},
};