Skip to content

Commit

Permalink
feat(RHINENG-7048): fec config conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Fewwy committed May 29, 2024
1 parent 7d6829b commit 2b82428
Show file tree
Hide file tree
Showing 12 changed files with 970 additions and 672 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,7 @@ cypress/videos

codecov*
.nyc_output/
reports/
reports/

# cache
.cache/
43 changes: 0 additions & 43 deletions config/dev.webpack.config.js

This file was deleted.

35 changes: 0 additions & 35 deletions config/prod.webpack.config.js

This file was deleted.

28 changes: 28 additions & 0 deletions fec.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
const { resolve } = require('path');

module.exports = {
appUrl: '/insights/dashboard',
debug: true,
useProxy: process.env.PROXY === 'true',
proxyVerbose: true,
plugins: [],
...(process.env.port ? { port: parseInt(process.env.port) } : {}),
moduleFederation: {
shared: [
{
'react-router-dom': {
singleton: true,
import: false,
version: '^6.3.0',
},
},
],
},
exposes: {
'./AppZeroState': resolve(__dirname, '../src/PresentationalComponents/ZeroState/AppZeroState.js'),
'./ZeroStateBanner': resolve(__dirname, '../src/PresentationalComponents/ZeroState/ZeroStateBanner.js'),
'./AppSection': resolve(__dirname, '../src/PresentationalComponents/ZeroState/AppSection.js'),
'./ZeroStateFooter': resolve(__dirname, '../src/PresentationalComponents/ZeroState/ZeroStateFooter.js'),
'./RootApp': resolve(__dirname, '../src/AppEntry.js')
},
};
Loading

0 comments on commit 2b82428

Please sign in to comment.