Skip to content

Commit 05fe6f4

Browse files
committed
convert webpack-dev-server port to number
1 parent 9a34c01 commit 05fe6f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webpack/dev.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var path = require('path');
66
var webpack = require('webpack');
77
var assetsPath = path.resolve(__dirname, '../static/dist');
88
var host = (process.env.HOST || 'localhost');
9-
var port = parseInt(process.env.PORT) + 1 || 3001;
9+
var port = (+process.env.PORT + 1) || 3001;
1010

1111
// https://github.com/halt-hammerzeit/webpack-isomorphic-tools
1212
var WebpackIsomorphicToolsPlugin = require('webpack-isomorphic-tools/plugin');

0 commit comments

Comments
 (0)