浏览代码

changed webpack devServer host as it as to be accessible from external (eg docker)

Bachir Soussi Chiadmi 5 年之前
父节点
当前提交
dd40e24467
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      build/webpack.config.dev.js

+ 1 - 2
build/webpack.config.dev.js

@@ -4,7 +4,6 @@ const webpack = require('webpack')
 const merge = require('webpack-merge')
 const baseConfig = require('./webpack.config.base')
 
-const HOST = 'localhost'
 const PORT = 8080
 
 module.exports = merge(baseConfig, {
@@ -15,7 +14,7 @@ module.exports = merge(baseConfig, {
     hot: true,
     contentBase: 'dist',
     compress: true,
-    host: HOST,
+    host: '0.0.0.0',
     port: PORT,
     // open: "firefox-developer-edition",
     overlay: { warnings: false, errors: true },