Set --host on package.json start command
This commit is contained in:
@@ -15,7 +15,8 @@ module.exports = merge(commonConfig, {
|
||||
],
|
||||
devServer: {
|
||||
hot: true, // Enable HMR on the server
|
||||
historyApiFallback: true
|
||||
historyApiFallback: true,
|
||||
// public: '0.0.0.0:8080',
|
||||
},
|
||||
devtool: "cheap-module-eval-source-map",
|
||||
plugins: [
|
||||
|
||||
@@ -8,4 +8,3 @@ services:
|
||||
- "3000:8080"
|
||||
volumes:
|
||||
- ./src:/app/src
|
||||
network_mode: "host"
|
||||
+1
-1
@@ -23,7 +23,7 @@
|
||||
"lint:ts:fix": "tslint -p tsconfig.json --format stylish --exclude node_modules --fix",
|
||||
"lint:sass": "stylelint ./src/**/**/*.scss ./src/**/*.scss ./src/*.scss",
|
||||
"start": "npm run start-dev",
|
||||
"start-dev": "webpack-dev-server --config=configs/webpack/dev.js",
|
||||
"start-dev": "webpack-dev-server --config=configs/webpack/dev.js --host 0.0.0.0",
|
||||
"serve": "serve -p 3000 dist",
|
||||
"start-prod": "npm run build && npm run serve",
|
||||
"mock-backend": "json-server --watch db.json -p 1234",
|
||||
|
||||
Reference in New Issue
Block a user