Web: Fixed port conflict with OnlyofficeApiSystemService

This commit is contained in:
Alexey Safronov 2020-12-01 14:39:54 +03:00
parent f1119a3afd
commit 7260e67902
2 changed files with 10 additions and 4 deletions

View File

@ -1,10 +1,13 @@
const HtmlWebPackPlugin = require("html-webpack-plugin");
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
const path = require("path");
const deps = require("./package.json").dependencies;
module.exports = {
output: {
publicPath: "http://localhost:5001/",
filename: "bundle.js",
path: path.resolve(__dirname, "dist"),
},
resolve: {
@ -75,7 +78,7 @@ module.exports = {
filename: "remoteEntry.js",
remotes: {
studio: "studio@http://localhost:5001/remoteEntry.js",
login: "login@http://localhost:5010/remoteEntry.js",
login: "login@http://localhost:5020/remoteEntry.js",
},
exposes: {
"./home": "./src/components/pages/Home",

View File

@ -1,10 +1,13 @@
const HtmlWebPackPlugin = require("html-webpack-plugin");
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
const path = require("path");
const deps = require("./package.json").dependencies;
module.exports = {
output: {
publicPath: "http://localhost:5010/",
publicPath: "http://localhost:5020/",
filename: "bundle.js",
path: path.resolve(__dirname, "dist"),
},
resolve: {
@ -15,7 +18,7 @@ module.exports = {
},
devServer: {
port: 5010,
port: 5020,
},
module: {
@ -63,7 +66,7 @@ module.exports = {
filename: "remoteEntry.js",
remotes: {
studio: "studio@http://localhost:5001/remoteEntry.js",
login: "login@http://localhost:5010/remoteEntry.js",
login: "login@http://localhost:5020/remoteEntry.js",
},
exposes: {
"./page": "./src/LoginContent.jsx",