Browse Source

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

Bachir Soussi Chiadmi 4 years ago
parent
commit
dd40e24467
1 changed files with 1 additions and 2 deletions
  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 },