X Tutup
Skip to content

Commit 3403eb7

Browse files
Make aspnet-webpack compatible with older versions of the NodeServices package
1 parent 0a34630 commit 3403eb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aspnet-webpack",
3-
"version": "1.0.8",
3+
"version": "1.0.9",
44
"description": "Helpers for using Webpack in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
55
"main": "index.js",
66
"scripts": {

src/Microsoft.AspNetCore.SpaServices/npm/aspnet-webpack/src/WebpackDevMiddleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export function createWebpackDevServer(callback: CreateDevServerCallback, option
3737
}
3838

3939
// The default value, 0, means 'choose randomly'
40-
const suggestedHMRPortOrZero = options.suppliedOptions.HotModuleReplacementServerPort;
40+
const suggestedHMRPortOrZero = options.suppliedOptions.HotModuleReplacementServerPort || 0;
4141

4242
const app = connect();
4343
const listener = app.listen(suggestedHMRPortOrZero, () => {

0 commit comments

Comments
 (0)
X Tutup