generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathfec.config.js
36 lines (35 loc) · 864 Bytes
/
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
const { resolve } = require('path');
module.exports = {
appUrl: '/openshift/insights/advisor',
debug: true,
useProxy: process.env.PROXY === 'true',
proxyVerbose: true,
/**
* Change to false after your app is registered in configuration files
*/
sassPrefix: 'ocp-advisor, ocpAdvisor',
interceptChromeConfig: false,
/**
* Add additional webpack plugins
*/
plugins: [],
...(process.env.HOT
? { hotReload: process.env.HOT === 'true' }
: { hotReload: true }),
...(process.env.port ? { port: parseInt(process.env.port) } : {}),
moduleFederation: {
exclude: ['react-router-dom'],
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: '^6.3.0',
},
},
],
},
exposes: {
'./RootApp': resolve(__dirname, '../src/AppEntry'),
},
};