set dev server to listen on 0.0.0.0

This commit is contained in:
Ray Elliott 2020-03-22 21:26:44 +00:00
parent f74020eda2
commit 139b291615
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
const merge = require("webpack-merge");
const path = require("path");
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const {CleanWebpackPlugin} = require("clean-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const common = require("./webpack.common");
@ -15,6 +15,8 @@ module.exports = merge(common, {
devServer: {
port: process.env.PORT || 3000,
host: "0.0.0.0",
disableHostCheck: true,
contentBase: path.join(process.cwd(), "./dist"),
watchContentBase: true,
quiet: false,