Skip to content

Commit 1277662

Browse files
authored
Merge pull request #3 from FirstWhack/FirstWhack-patch-2
Allow all hosts to devserver
2 parents 3add07c + 5f828e3 commit 1277662

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

packages/app1/webpack.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ module.exports = {
1414
devtool: "source-map",
1515
devServer: {
1616
contentBase: path.join(__dirname, "dist"),
17-
port: 1337
17+
port: 1337,
18+
allowedHosts: 'all'
1819
},
1920
output: {
2021
publicPath: "auto",

packages/app2/webpack.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = {
1515
devtool: "source-map",
1616
devServer: {
1717
contentBase: path.join(__dirname, "dist"),
18-
port: 1338
18+
port: 1338,
19+
allowedHosts: 'all'
1920
},
2021
output: {
2122
publicPath: "auto",

packages/store/webpack.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ module.exports = {
1616
devtool: "source-map",
1717
devServer: {
1818
contentBase: path.join(__dirname, "dist"),
19-
port: 1339
19+
port: 1339,
20+
allowedHosts: 'all'
2021
},
2122
output: {
2223
publicPath: "auto",

0 commit comments

Comments
 (0)