Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 047f995

Browse files
PROD-1551 #comment output local config
files in dist directory; #time 15m
1 parent 82a3a04 commit 047f995

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

config/constants.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ module.exports = Object.freeze({
22
APP_CONFIG: [
33
{
44
'appEnv': 'dev',
5-
'mfeConfigPath': '/micro-frontends-config-development.json',
5+
'mfeConfigPath': '/config/micro-frontends-config-development.json',
66
'mfeIndexPath': '/index.html',
7-
'mfeRoutesPath': '/micro-frontends-routes-development.txt'
7+
'mfeRoutesPath': '/config/micro-frontends-routes-development.txt'
88
},
99
{
1010
'appEnv': 'prod',
11-
'mfeConfigPath': '/micro-frontends-config-production.json',
11+
'mfeConfigPath': '/config/micro-frontends-config-production.json',
1212
'mfeIndexPath': '/index.html',
13-
'mfeRoutesPath': '/micro-frontends-routes-production.txt'
13+
'mfeRoutesPath': '/config/micro-frontends-routes-production.txt'
1414
},
1515
{
1616
'appEnv': 'local-multi',

webpack.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ module.exports = (webpackConfigEnv) => {
4848
from: "src/images",
4949
to: "./",
5050
},
51+
{
52+
from: "config/*development.*",
53+
to: "./",
54+
},
55+
{
56+
from: "config/*production.*",
57+
to: "./",
58+
},
5159
],
5260
}),
5361
],

0 commit comments

Comments
 (0)