forked from openshift-assisted/assisted-installer-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfec.config.js
63 lines (61 loc) · 1.74 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
const path = require('path');
/**
* @typedef {Object} FEConfig
* @property {string} appUrl
* @property {boolean} interceptChromeConfig
*/
/** @type {import('webpack').Configuration & FEConfig} */
module.exports = {
appUrl: '/openshift/assisted-installer-app',
debug: true,
useProxy: true,
proxyVerbose: true,
/**
* Change accordingly to your appname in package.json.
* The `sassPrefix` attribute is only required if your `appname` includes the dash `-` characters.
* If the dash character is present, you will have to add a camelCase version of it to the sassPrefix.
* If it does not contain the dash character, remove this configuration.
*/
sassPrefix: '.assisted-installer-app, .assistedInstallerApp',
/**
* Change to false after your app is registered in configuration files
*/
interceptChromeConfig: false,
/**
* Add additional webpack plugins
*/
plugins: [],
_unstableHotReload: process.env.HOT === 'true',
moduleFederation: {
exposes: {
'./RootApp': path.resolve(__dirname, './src/components/root-app.tsx'),
'./TechnologyPreview': path.resolve(
__dirname,
'./src/components/technologypreview.tsx'
),
'./NoPermissionsError': path.resolve(
__dirname,
'./src/components/nopermissionserror.tsx'
),
'./ExternalLink': path.resolve(
__dirname,
'./src/components/externallink.tsx'
),
},
exclude: ['react', 'react-dom'],
shared: [
{
react: {
singleton: true,
import: false,
requiredVersion: '>=16.8 || >=17',
},
'react-dom': {
singleton: true,
import: false,
requiredVersion: '>=16.8 || >=17',
},
},
],
},
};