diff --git a/src/main/webui/package.json b/src/main/webui/package.json index 957f62f..f46df2e 100644 --- a/src/main/webui/package.json +++ b/src/main/webui/package.json @@ -72,7 +72,7 @@ "dev": "webpack-dev-server --open --hot", "lint": "eslint './src/**'", "lint-fix": "eslint './src/**' --fix", - "server": "npm run build && nodemon src/server/app.js --exec babel-node --presets @babel/preset-env", + "server": "npm run build-dev && nodemon src/server/app.js --exec babel-node --presets @babel/preset-env", "test": "NODE_ENV=test jest" } } diff --git a/src/main/webui/webpack.config.js b/src/main/webui/webpack.config.js index 8f238e7..2b0e004 100644 --- a/src/main/webui/webpack.config.js +++ b/src/main/webui/webpack.config.js @@ -27,6 +27,11 @@ module.exports = { }, mode: 'development', devtool: 'inline-source-map', + devServer: { + static: path.resolve(__dirname, outputDirectory), + host: '0.0.0.0', + port: 8080, + }, optimization: { minimize: true, minimizer: [