src: Adapt to insights-chrome 2.0
This commit is contained in:
parent
e85e51e574
commit
4658f59d0b
17 changed files with 98 additions and 60 deletions
|
|
@ -1,13 +1,24 @@
|
|||
|
||||
const { resolve } = require('path');
|
||||
const config = require('@redhat-cloud-services/frontend-components-config');
|
||||
const { config: webpackConfig, plugins } = config({
|
||||
rootFolder: resolve(__dirname, '../'),
|
||||
debug: true,
|
||||
https: false,
|
||||
port: 8002,
|
||||
useFileHash: false,
|
||||
skipChrome2: true,
|
||||
});
|
||||
|
||||
plugins.push(
|
||||
require('@redhat-cloud-services/frontend-components-config/federated-modules')({
|
||||
root: resolve(__dirname, '../'),
|
||||
useFileHash: false,
|
||||
moduleName: 'image_builder',
|
||||
exposes: {
|
||||
'./RootApp': resolve(__dirname, '../src/AppEntry.js'),
|
||||
},
|
||||
})
|
||||
);
|
||||
|
||||
module.exports = {
|
||||
...webpackConfig,
|
||||
plugins
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue