Просмотр исходного кода

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

Bachir Soussi Chiadmi 5 лет назад
Родитель
Сommit
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 },