Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StartUp.cs
- ConfigureServices
- services.AddMvc();
- services.AddReact();
- services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
- services.AddNodeServices();
- services.Configure<AppSettings>(Configuration.GetSection("AppSettings"));
- Configure
- // Initialise ReactJS.NET. Must be before static files.
- app.UseReact(config =>
- {
- config
- .SetLoadBabel(false)
- .AddScriptWithoutTransform("~/build/server.bundle.js");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement