generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 15
/
fec.config.js
41 lines (40 loc) · 1.13 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
const path = require('path');
module.exports = {
appUrl: ['/settings/learning-resources', '/openshift/learning-resources', "/staging/global-learning-resources-page"],
debug: true,
useProxy: true,
proxyVerbose: true,
sassPrefix: '.learning-resources, .learningResources',
/**
* Change to false after your app is registered in configuration files
*/
interceptChromeConfig: false,
hotReload: true,
/**
* Add additional webpack plugins
*/
plugins: [],
moduleFederation: {
exposes: {
'./RootApp': path.resolve(__dirname, './src/AppEntry.tsx'),
'./BookmarkedLearningResourcesWidget': path.resolve(
__dirname,
'./src/components/LearningResourcesWidget/LearningResourcesWidget'
),
'./GlobalLearningResourcesPage': path.resolve(
__dirname,
'./src/components/GlobalLearningResourcesPage/GlobalLearningResourcesPage'
),
'./Creator': path.resolve(__dirname, './src/Creator.tsx'),
},
exclude: ['react-router-dom'],
shared: [
{
'react-router-dom': {
singleton: true,
version: '*',
},
},
],
},
};