Skip to content

Commit c607440

Browse files
authored
fix: dashboard example (#688)
1 parent e2dd7a0 commit c607440

File tree

5 files changed

+6
-14
lines changed

5 files changed

+6
-14
lines changed

dashboard-example/app1/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"@module-federation/dashboard-plugin": "2.1.0"
1515
},
1616
"scripts": {
17-
"start": "node --inspect ../../node_modules/webpack-dev-server/bin/webpack-dev-server.js",
18-
"build": "node ../../node_modules/webpack/bin/webpack.js --mode production",
17+
"start": "webpack-cli serve",
18+
"build": "webpack --mode production",
1919
"serve": "serve dist -p 3001",
2020
"clean": "rm -rf dist"
2121
},
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
import App from "./App";
2-
import React from "react";
3-
import ReactDOM from "react-dom";
4-
5-
ReactDOM.render(<App />, document.getElementById("root"));
1+
import('./bootstrap');

dashboard-example/app1/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
app2: "app2@http://localhost:3002/remoteEntry.js",
3535
},
3636
exposes: {
37-
Button: "./src/Button",
37+
"./Button": "./src/Button",
3838
},
3939
// sharing code based on the installed version, to allow for multiple vendors with different versions
4040
shared: require("./package.json").dependencies,
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
import App from "./App";
2-
import React from "react";
3-
import ReactDOM from "react-dom";
4-
5-
ReactDOM.render(<App />, document.getElementById("root"));
1+
import('./bootstrap');

dashboard-example/app2/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = {
3838
app1: "app1@http://localhost:3001/remoteEntry.js",
3939
},
4040
exposes: {
41-
Button: "./src/Button",
41+
"./Button": "./src/Button",
4242
},
4343
shared: sharedReduce,
4444
}),

0 commit comments

Comments
 (0)