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

PROD-1551 output local configs in build -> dev #64

Merged
merged 1 commit into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PROD-1551 #comment output local config
files in dist directory; #time 15m
  • Loading branch information
brooketopcoder committed May 6, 2022
commit 047f995002cc44200676cfb0c0380d6ebed4b9c9
8 changes: 4 additions & 4 deletions config/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ module.exports = Object.freeze({
APP_CONFIG: [
{
'appEnv': 'dev',
'mfeConfigPath': '/micro-frontends-config-development.json',
'mfeConfigPath': '/config/micro-frontends-config-development.json',
'mfeIndexPath': '/index.html',
'mfeRoutesPath': '/micro-frontends-routes-development.txt'
'mfeRoutesPath': '/config/micro-frontends-routes-development.txt'
},
{
'appEnv': 'prod',
'mfeConfigPath': '/micro-frontends-config-production.json',
'mfeConfigPath': '/config/micro-frontends-config-production.json',
'mfeIndexPath': '/index.html',
'mfeRoutesPath': '/micro-frontends-routes-production.txt'
'mfeRoutesPath': '/config/micro-frontends-routes-production.txt'
},
{
'appEnv': 'local-multi',
Expand Down
8 changes: 8 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ module.exports = (webpackConfigEnv) => {
from: "src/images",
to: "./",
},
{
from: "config/*development.*",
to: "./",
},
{
from: "config/*production.*",
to: "./",
},
],
}),
],
Expand Down