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

Commit 09ccf2f

Browse files
authored
fix(index): ensure port is an integer
1 parent 5998808 commit 09ccf2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function generateConfig(...configs: Array<EasyWebpackConfig>) {
5959
let config = {} as WebpackConfigWithMetadata
6060
if (generateConfigOptions.alwaysAddBaseMetadata || (!config.metadata && generateConfigOptions.addDefaultMetadata)) {
6161
config.metadata = {
62-
port: process.env.WEBPACK_PORT || 9000,
62+
port: parseInt(process.env.WEBPACK_PORT) || 9000,
6363
host: process.env.WEBPACK_HOST || 'localhost',
6464
ENV: process.env.NODE_ENV || process.env.ENV || 'development',
6565
HMR: hasProcessFlag('hot') || !!process.env.WEBPACK_HMR,

0 commit comments

Comments
 (0)