-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathfec.config.js
42 lines (41 loc) · 1.17 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
const path = require('path');
const dependencies = require('./package.json').dependencies;
module.exports = {
appUrl: ['/staging/widget-layout'],
sassPrefix: '.widgetLayout, .landing',
debug: true,
useProxy: true,
proxyVerbose: true,
/**
* Change to false after your app is registered in configuration files
*/
interceptChromeConfig: false,
/**
* Add additional webpack plugins
*/
plugins: [],
_unstableHotReload: process.env.HOT === 'true',
routes: {
...(process.env.CONFIG_PORT && {
'/api/chrome-service/v1/static': {
host: `http://localhost:${process.env.CONFIG_PORT}`,
},
'/api/chrome-service/v1/dashboard-templates': {
host: `http://localhost:${process.env.CONFIG_PORT}`,
},
}),
},
moduleFederation: {
moduleName: 'widgetLayout',
exposes: {
'./RootApp': path.resolve(__dirname, './src/AppEntry.tsx'),
'./WidgetLayout': path.resolve(__dirname, './src/Routes/Default/Default.tsx'),
},
exclude: ['react-router-dom'],
shared: [
{
'react-router-dom': { singleton: true, version: dependencies['react-router-dom'], requiredVersion: '*' },
},
],
},
};