Преглед на файлове

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 },