aboutsummaryrefslogtreecommitdiff
path: root/vnext/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-02 15:43:02 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commitfb44a9cf650889f097701ebf27a8032f3f0fcc20 (patch)
tree023c17ed83cef36a9711d45381c88ff77cc37845 /vnext/webpack.config.js
parentd74e1a6b254409aa3b5b6d1bd1ed81de9cccf521 (diff)
listen on internal-ip
Diffstat (limited to 'vnext/webpack.config.js')
-rw-r--r--vnext/webpack.config.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/vnext/webpack.config.js b/vnext/webpack.config.js
index 9eb1d7fa..ce4995eb 100644
--- a/vnext/webpack.config.js
+++ b/vnext/webpack.config.js
@@ -1,5 +1,6 @@
const history = require('connect-history-api-fallback');
const convert = require('koa-connect');
+const internalIp = require('internal-ip');
module.exports = {
entry: {
@@ -23,6 +24,7 @@ module.exports = {
module.exports.serve = {
content: [__dirname],
+ host: internalIp.v4.sync(),
add: (app, middleware, options) => {
const historyOptions = {
// ... see: https://github.com/bripkens/connect-history-api-fallback#options