Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 7c90264

Browse files
authored
Merge pull request #13 from cecilphillip/patch-1
Updating readme sample
2 parents 9cb9306 + 7b5661b commit 7c90264

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ This is a stand-alone module to add VueCli support to AspNet Core 2.2.0.
2020
public virtual void ConfigureServices(IServiceCollection services)
2121
{
2222
services.AddMvc(); // etc
23+
24+
// Need to register ISpaStaticFileProvider for UseSpaStaticFiles middleware to work
25+
services.AddSpaStaticFiles(configuration =>
26+
{
27+
configuration.RootPath = "ClientApp/dist";
28+
});
2329
}
2430

2531
public virtual void Configure(IApplicationBuilder app, IHostingEnvironment env)
@@ -47,4 +53,4 @@ This is a stand-alone module to add VueCli support to AspNet Core 2.2.0.
4753

4854
## History
4955

50-
Due to the discussion [here](https://github.com/aspnet/JavaScriptServices/pull/1726), it was decided to not be included in the Microsoft owned package.
56+
Due to the discussion [here](https://github.com/aspnet/JavaScriptServices/pull/1726), it was decided to not be included in the Microsoft owned package.

0 commit comments

Comments
 (0)