forked from module-federation/module-federation-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remotes.config.js
46 lines (46 loc) · 885 Bytes
/
remotes.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
module.exports = {
remotes: {
css: {
port: 4000,
name: 'expose_css',
},
cssModule: {
port: 4001,
name: 'expose_css_modules',
},
jss: {
port: 4002,
name: 'expose_jss',
},
less: {
port: 4003,
name: 'expose_less',
},
scss: {
port: 4004,
name: 'expose_scss',
},
styledComponent: {
port: 4005,
name: 'expose_styled_component',
},
tailwindCssGlobal: {
port: 4006,
name: 'expose_tailwind_css_global',
},
tailwindCssModule: {
port: 4007,
name: 'expose_tailwind_css_module',
},
},
getRemoteEntry: remote => `${remote.name}@//localhost:${remote.port}/remoteEntry.js`,
mfeBaseConfig: {
filename: 'remoteEntry.js',
shared: {
react: {
requiredVersion: false,
singleton: true,
},
},
},
};