generated from RedHatInsights/frontend-starter-app
-
Notifications
You must be signed in to change notification settings - Fork 6
/
fec.config.js
34 lines (33 loc) · 994 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const { resolve } = require('path');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const webpack = require('webpack');
// eslint-disable-next-line @typescript-eslint/no-var-requires
const packageJson = require('./package.json');
module.exports = {
appUrl: '/subscriptions/manifests',
useProxy: process.env.PROXY === 'true',
proxyVerbose: true,
plugins: [
new webpack.DefinePlugin({
IS_DEV: process.env.NODE_ENV === 'development'
})
],
hotReload: process.env.HOT === 'true',
...(process.env.port ? { port: parseInt(process.env.port) } : {}),
moduleFederation: {
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: packageJson.dependencies['react-router-dom'],
requiredVersion: '>=6.0.0 <7.0.0'
}
}
],
exposes: {
'./RootApp': resolve(__dirname, './src/AppEntry')
}
}
};