Skip to content

Commit 7d7f776

Browse files
committed
Found that the default mappings work best
Also added forcekill to force existing dev-servers shutdown
1 parent 0efe17f commit 7d7f776

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

.vscode/launch.json

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,16 @@
3737
"type": "chrome",
3838
"request": "launch",
3939
"url": "http://localhost:5000",
40-
"webRoot": "${workspaceFolder}/ClientApp",
40+
"webRoot": "${workspaceFolder}/ClientApp/",
4141
"breakOnLoad": true,
42-
"sourceMaps": true,
43-
"sourceMapPathOverrides": {
44-
"webpack:///*": "${webRoot}/*",
45-
"webpack:///./*": "${webRoot}/*",
46-
"webpack:///src/*": "${webRoot}/*"
47-
}
42+
"sourceMaps": true
4843
},
4944
{
5045
"name": "Launch Firefox",
5146
"type": "firefox",
5247
"request": "launch",
5348
"url": "http://localhost:5000",
54-
"webRoot": "${workspaceFolder}/ClientApp",
55-
"pathMappings": [
56-
{
57-
"url": "webpack:///src/",
58-
"path": "${webRoot}/"
59-
}
60-
]
49+
"webRoot": "${workspaceFolder}/ClientApp/"
6150
}
6251
],
6352
"compounds": [

Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
7474
if (env.IsDevelopment())
7575
{
7676
// run npm process with client app
77-
spa.UseVueCli(npmScript: "serve", port: 8080);
77+
spa.UseVueCli(npmScript: "serve", port: 8080, forceKill: true);
7878
// if you just prefer to proxy requests from client app, use proxy to SPA dev server instead,
7979
// app should be already running before starting a .NET client:
8080
// spa.UseProxyToSpaDevelopmentServer("http://localhost:8080"); // your Vue app port

0 commit comments

Comments
 (0)