Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 21b192d

Browse files
committed
PORT env var
1 parent f9526de commit 21b192d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/webpack.config.dev.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ var ExtractTextPlugin = require("extract-text-webpack-plugin");
1010
// host so it can load the right files. The HMR host is a bit stranger. For more
1111
// details on why we need this URL see the readme and:
1212
// https://github.com/glenjamin/webpack-hot-middleware/issues/37
13-
var DEV_PORT = process.env.DEV_PORT || 3001;
14-
var DEV_HOST = `//localhost:${DEV_PORT}/`;
13+
var PORT = process.env.PORT || 3001;
14+
var DEV_HOST = `//localhost:${PORT}/`;
1515
var HMR_HOST = `${DEV_HOST}__webpack_hmr`;
1616

1717
module.exports = Object.assign(webpackBaseConfig, {

0 commit comments

Comments
 (0)