set dev server to listen on 0.0.0.0
This commit is contained in:
parent
f74020eda2
commit
139b291615
|
@ -1,6 +1,6 @@
|
||||||
const merge = require("webpack-merge");
|
const merge = require("webpack-merge");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
const {CleanWebpackPlugin} = require("clean-webpack-plugin");
|
||||||
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
|
||||||
|
|
||||||
const common = require("./webpack.common");
|
const common = require("./webpack.common");
|
||||||
|
@ -15,6 +15,8 @@ module.exports = merge(common, {
|
||||||
|
|
||||||
devServer: {
|
devServer: {
|
||||||
port: process.env.PORT || 3000,
|
port: process.env.PORT || 3000,
|
||||||
|
host: "0.0.0.0",
|
||||||
|
disableHostCheck: true,
|
||||||
contentBase: path.join(process.cwd(), "./dist"),
|
contentBase: path.join(process.cwd(), "./dist"),
|
||||||
watchContentBase: true,
|
watchContentBase: true,
|
||||||
quiet: false,
|
quiet: false,
|
||||||
|
|
Reference in New Issue