Set --host on package.json start command

This commit is contained in:
Aarni Halinen
2018-08-14 22:55:53 +03:00
parent f3fa6de945
commit 44833d5e3d
3 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -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: [
-1
View File
@@ -8,4 +8,3 @@ services:
- "3000:8080"
volumes:
- ./src:/app/src
network_mode: "host"
+1 -1
View File
@@ -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",